Skip to content

Instantly share code, notes, and snippets.

@securetorobert
Created March 24, 2021 15:39
Show Gist options
  • Save securetorobert/ad7173f32ce7857e27f332363a6b1658 to your computer and use it in GitHub Desktop.
Save securetorobert/ad7173f32ce7857e27f332363a6b1658 to your computer and use it in GitHub Desktop.
Hires between August 2015 and January 2017
SELECT
COUNT(rental_id)
FROM
`bigquery-public-data.london_bicycles.cycle_hire`
WHERE
DATE_TRUNC(DATE(end_date), month) >= '2015-08-01' and DATE_TRUNC(DATE(end_date), year) < '2017-01-01'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment