Skip to content

Instantly share code, notes, and snippets.

@jredville
Created June 5, 2012 04:29
Show Gist options
  • Save jredville/2872641 to your computer and use it in GitHub Desktop.
Save jredville/2872641 to your computer and use it in GitHub Desktop.
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 OR "spree_products_taxons"."taxon_id" = 2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment