Skip to content

Commit 7d7f751

Browse files
authored
Update 08_nyc_restaurants.sql
1 parent 1e6c308 commit 7d7f751

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

1-queries/08_nyc_restaurants.sql

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,37 @@
44
SELECT *
55
FROM restaurants;
66

7+
-- Unique restaurants
8+
79
SELECT DISTINCT cuisine
810
FROM restaurants;
911

12+
-- Chinese spots
13+
1014
SELECT *
1115
FROM restaurants
1216
WHERE cuisine = 'Chinese';
1317

18+
-- Italian spots
19+
1420
SELECT *
1521
FROM restaurants
1622
WHERE cuisine = 'Italian';
1723

24+
-- Restaurants in Greenpoint
25+
26+
SELECT *
27+
FROM restaurants
28+
WHERE neighborhood = 'Greenpoint';
29+
30+
-- Cheat eats
31+
32+
SELECT *
33+
FROM restaurants
34+
WHERE price = '$';
35+
36+
-- Bougie spots
37+
1838
SELECT *
1939
FROM restaurants
20-
WHERE neighborhood = 'Greenpoint';
40+
WHERE price = '$$$';

0 commit comments

Comments
 (0)