Skip to content

Instantly share code, notes, and snippets.

@glesica
Created November 22, 2011 23:54
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 glesica/1387484 to your computer and use it in GitHub Desktop.
Save glesica/1387484 to your computer and use it in GitHub Desktop.
SELECT
a.application_id,
a.application_name,
a.application_vendor,
a.application_version,
(SELECT COUNT(*) FROM installations i WHERE i.application_id=a.application_id) count
FROM
applications a
WHERE
1=1
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment