Skip to content

Instantly share code, notes, and snippets.

@selenamarie
Created July 1, 2013 21:32
Show Gist options
  • Save selenamarie/5904825 to your computer and use it in GitHub Desktop.
Save selenamarie/5904825 to your computer and use it in GitHub Desktop.
with exploitability_count AS (
select count(*) from exploitability_reports
WHERE
report_date BETWEEN %(start_date)s AND %(end_date)s
)
SELECT
exploitability_count.count
signature,
report_date,
null_count,
none_count,
low_count,
medium_count,
high_count
FROM exploitability_reports
WHERE
report_date BETWEEN %(start_date)s AND %(end_date)s
ORDER BY
report_date DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment