Skip to content

Instantly share code, notes, and snippets.

@Everettss
Last active September 18, 2017 14:13
Show Gist options
  • Select an option

  • Save Everettss/8c74a8275ad51a912b6fcfbe932cef89 to your computer and use it in GitHub Desktop.

Select an option

Save Everettss/8c74a8275ad51a912b6fcfbe932cef89 to your computer and use it in GitHub Desktop.

Revisions

  1. Everettss revised this gist Sep 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion test-tasks.sql
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    SELECT task, (count(*) / 202808 * 100) as percent
    SELECT task, (count(distinct projectID) / 202808 * 100) as percent
    FROM [scripts]
    WHERE taskName = 'test'
    GROUP BY task
  2. Everettss revised this gist Sep 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion test-tasks.sql
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    SELECT task, (count(distinct projectID) / 202808 * 100) as percent
    SELECT task, (count(*) / 202808 * 100) as percent
    FROM [scripts]
    WHERE taskName = 'test'
    GROUP BY task
  3. Everettss created this gist Sep 18, 2017.
    5 changes: 5 additions & 0 deletions test-tasks.sql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    SELECT task, (count(distinct projectID) / 202808 * 100) as percent
    FROM [scripts]
    WHERE taskName = 'test'
    GROUP BY task
    ORDER BY percent DESC