Skip to content

Instantly share code, notes, and snippets.

@rodrigopinto
Created July 22, 2011 14:33
Show Gist options
  • Select an option

  • Save rodrigopinto/1099569 to your computer and use it in GitHub Desktop.

Select an option

Save rodrigopinto/1099569 to your computer and use it in GitHub Desktop.
SELECT [shop].*
FROM [shop]
INNER JOIN [project_shop] ON ([shop].[shopid]=[project_shop].[shopid])
WHERE (([project_shop].[ProjectId] = 1000)
AND ((shopid in (select p.ShopId from Price p, Product p where p.ProductId = o.ProductId and o.ProjectId = 23849552638300)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment