Skip to content

Instantly share code, notes, and snippets.

@makoll
Created January 17, 2014 08:35
Show Gist options
  • Save makoll/8470164 to your computer and use it in GitHub Desktop.
Save makoll/8470164 to your computer and use it in GitHub Desktop.
SELECT
A.ID, COUNT(*)
FROM
A LEFT JOIN B
ON
A.ID = B.ID GROUP BY ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment