Created
March 24, 2021 15:19
-
-
Save securetorobert/7f99c4c3aaa05f25a852eeaf79e3d620 to your computer and use it in GitHub Desktop.
Truncate the end_date to the year in London Bicycle Hires table and group by that.
This file contains hidden or 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
SELECT | |
DATE_TRUNC(DATE(end_date), YEAR) | |
FROM | |
`bigquery-public-data.london_bicycles.cycle_hire` | |
GROUP BY | |
1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment