Skip to content

Instantly share code, notes, and snippets.

@jld
Created June 29, 2017 01:00
Show Gist options
  • Select an option

  • Save jld/42a897cb59bc946e388e5ea197b5c79c to your computer and use it in GitHub Desktop.

Select an option

Save jld/42a897cb59bc946e388e5ea197b5c79c to your computer and use it in GitHub Desktop.
SELECT shiny,
count(1) AS hits
FROM
(SELECT (CASE WHEN (kernel LIKE '%-generic%'
OR kernel LIKE '%-lowlatency%'
OR kernel LIKE '%.fc%')
AND NOT kernel LIKE '3.2.%' THEN 'Yay' ELSE 'Nope' END) AS shiny
FROM
(SELECT submission_date[1] as date, system_os[1].version AS kernel
FROM telemetry.longitudinal
WHERE os = 'Linux')
WHERE date > '2017-05-20')
GROUP BY shiny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment