Created
February 4, 2021 00:31
-
-
Save montanalow/44444080b2e444879edbf3a26ae3bf0e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 * | |
FROM products | |
NATURAL JOIN items | |
WHERE products.keywords @@ to_tsquery('apple') -- full text query | |
AND items.retailer_location_id = 123 -- a single store's inventory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment