Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SQL Deep Dive/IN/questions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Question: How many orders were made by customer 7888, 1082, 12808, 9623
*/

SELECT * FROM orders;
SELECT count(orderid) FROM orders where customerid in (7888,1082,12808,9623);


/*
Expand All @@ -13,4 +13,4 @@ SELECT * FROM orders;
* Question: How many cities are in the district of Zuid-Holland, Noord-Brabant and Utrecht?
*/

SELECT * FROM city;
SELECT count(id) FROM city where district in ('Zuid-Holland', 'Noord-Brabant', 'Utrecht');