Skip to content

Instantly share code, notes, and snippets.

@jfrux
Last active August 10, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfrux/1c294bb6ceb305d87d75c9416bef0868 to your computer and use it in GitHub Desktop.
Save jfrux/1c294bb6ceb305d87d75c9416bef0868 to your computer and use it in GitHub Desktop.
SELECT * FROM core_recipeitem RI1
LEFT JOIN core_recipeitem RI2 ON RI1.item_id = RI2.item_id
SELECT * FROM core_recipeitem RI1
LEFT JOIN (SELECT item_id FROM core_recipeitem) As RI2 ON RI1.item_id = RI2.item_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment