Skip to content

Instantly share code, notes, and snippets.

@lakshmanok
Created October 6, 2016 18:50
Show Gist options
  • Save lakshmanok/23ca7e7a1ad825ae9c934c01333a37d6 to your computer and use it in GitHub Desktop.
Save lakshmanok/23ca7e7a1ad825ae9c934c01333a37d6 to your computer and use it in GitHub Desktop.
SELECT
date,
airline,
departure_airport,
departure_schedule,
arrival_airport,
arrival_delay,
FROM
[bigquery-samples:airline_ontime_data.flights]
WHERE
ABS(HASH(date))%70 == 0 AND ABS(HASH(date)) % 700 >= 560 AND ABS(HASH(date)) % 700 < 640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment