Created
June 5, 2012 04:22
-
-
Save radar/2872626 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 spree_products.* FROM "spree_products" | |
INNER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" | |
WHERE "spree_products_taxons"."taxon_id" = 2000 | |
INTERSECT | |
SELECT spree_products.* FROM "spree_products" | |
INNER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" | |
WHERE "spree_products_taxons"."taxon_id" = 31989848 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment