Skip to content

Instantly share code, notes, and snippets.

@Everettss
Last active September 18, 2017 14:13
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 Everettss/8c74a8275ad51a912b6fcfbe932cef89 to your computer and use it in GitHub Desktop.
Save Everettss/8c74a8275ad51a912b6fcfbe932cef89 to your computer and use it in GitHub Desktop.
SELECT task, (count(distinct projectID) / 202808 * 100) as percent
FROM [scripts]
WHERE taskName = 'test'
GROUP BY task
ORDER BY percent DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment