Created
April 27, 2020 06:02
-
-
Save andizzle/1c9cb1418cd5932a13d6eba42fd70b05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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