Skip to content

Instantly share code, notes, and snippets.

@gmgent
Created March 8, 2011 19:52
Show Gist options
  • Select an option

  • Save gmgent/860896 to your computer and use it in GitHub Desktop.

Select an option

Save gmgent/860896 to your computer and use it in GitHub Desktop.
SELECT r.id
FROM retailers r
RIGHT JOIN sales s
ON s.retailer_id = r.id
WHERE r.merchant = 'Ralphs'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment