Skip to content

Instantly share code, notes, and snippets.

@andizzle
Created April 27, 2020 06:02
Show Gist options
  • Save andizzle/1c9cb1418cd5932a13d6eba42fd70b05 to your computer and use it in GitHub Desktop.
Save andizzle/1c9cb1418cd5932a13d6eba42fd70b05 to your computer and use it in GitHub Desktop.
WITH
flights AS (
SELECT
DATE(event_at) AS dt,
COUNT(*)
FROM
`reporting.flight_allocations`
WHERE
event_at > "2020-04-25"
GROUP BY
1)
SELECT
*
FROM
flights
ORDER BY
dt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment