Created
November 9, 2017 22:29
-
-
Save kstirman/d961ce455d055c47cbeadb91e292fce5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
business.name, | |
business.full_address, | |
business.city, | |
business.state, | |
review.text, | |
review."date" AS "date", | |
review.user_id AS user_id, | |
review.stars AS stars, | |
review.text AS text | |
FROM | |
elastic.yelp.business AS business | |
INNER JOIN | |
elastic.yelp.review AS review ON business.business_id = review.business_id | |
WHERE CONTAINS(text:'amazing OR awesome OR terrific OR fantastic NOT (awful OR terrible OR disgusting OR horrible)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment