foursquarelabsadmin
commited on
Update README.md
Browse filesupdate code blocks
README.md
CHANGED
@@ -37,7 +37,7 @@ WITH places_exploded_categories AS (
|
|
37 |
SELECT
|
38 |
DISTINCT(fsq_place_id) -- Get distinct ids to reduce duplicates from cross join
|
39 |
FROM places_exploded_categories p
|
40 |
-
JOIN
|
41 |
ON p.fsq_category_id = c.category_id
|
42 |
WHERE c.level2_category_id = '4d4b7105d754a06374d81259' -- Restaurants
|
43 |
)
|
@@ -58,7 +58,7 @@ WITH places_exploded_categories AS (
|
|
58 |
SELECT
|
59 |
DISTINCT(fsq_place_id) -- Get distinct ids to reduce duplicates from explode function
|
60 |
FROM places_exploded_categories p
|
61 |
-
JOIN
|
62 |
ON p.fsq_category_id = c.category_id
|
63 |
WHERE c.level2_category_id = '4d4b7105d754a06374d81259' -- Restaurants
|
64 |
)
|
|
|
37 |
SELECT
|
38 |
DISTINCT(fsq_place_id) -- Get distinct ids to reduce duplicates from cross join
|
39 |
FROM places_exploded_categories p
|
40 |
+
JOIN categories c -- Join to categories to filter on Level 2 Category
|
41 |
ON p.fsq_category_id = c.category_id
|
42 |
WHERE c.level2_category_id = '4d4b7105d754a06374d81259' -- Restaurants
|
43 |
)
|
|
|
58 |
SELECT
|
59 |
DISTINCT(fsq_place_id) -- Get distinct ids to reduce duplicates from explode function
|
60 |
FROM places_exploded_categories p
|
61 |
+
JOIN categories c -- Join to categories to filter on Level 2 Category
|
62 |
ON p.fsq_category_id = c.category_id
|
63 |
WHERE c.level2_category_id = '4d4b7105d754a06374d81259' -- Restaurants
|
64 |
)
|