JSONified
Semi-structured data can be challenging to query, so let's practice interacting with Yelpto's data once again.
Here, you will filter the contents of a VARIANT column.
Bu egzersiz
Introduction to Snowflake SQL
kursunun bir parçasıdırEgzersiz talimatları
- Filter where the
DogsAllowedkey in theattributescolumn is'True'(note this is astring, notboolean). - Filter where the
BusinessAcceptsCreditCardskey in theattributescolumn is'True'(note this is astring, notboolean).
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
SELECT business_id, name
FROM yelp_business_data
WHERE categories ILIKE '%Restaurant%'
-- Filter where DogsAllowed is '%True%'
AND ___ ___ '%True%'
-- Filter where BusinessAcceptsCreditCards is '%True%'
AND ___
AND city ILIKE '%Philadelphia%'
AND stars = 5