pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/uchinokot/sql_writing_drill/commit/675097e6aeddb8f7ea5bf2099ff24da0a3b10bfb

Finished Question 1 of 3-4 · uchinokot/sql_writing_drill@675097e · GitHub
Skip to content

Commit 675097e

Browse files
author
Kota Uchino
committed
Finished Question 1 of 3-4
1 parent 926f0bc commit 675097e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

3/3-4/1.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SELECT
2+
c.CustomerName
3+
, SUM(
4+
CASE
5+
WHEN s.Quantity IS NULL THEN 0
6+
ELSE s.Quantity
7+
END
8+
) AS 販売数量合計
9+
FROM
10+
Customers AS c
11+
LEFT OUTER JOIN
12+
Sales AS s
13+
ON c.CustomerID = s.CustomerID
14+
GROUP BY
15+
c.CustomerID
16+
;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy