Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[BigQuery row for each date in range] Generates a row for every date in a range with day of week #bigquery
with dates as (
SELECT day,
FORMAT_DATE('%A', day) AS dow
FROM UNNEST(
GENERATE_DATE_ARRAY(DATE('2020-02-01'), DATE('2020-02-29'), INTERVAL 1 DAY)
) AS day
)
select * from dates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment