Skip to content

Instantly share code, notes, and snippets.

@n0531m
Last active November 21, 2025 09:49
Show Gist options
  • Select an option

  • Save n0531m/be7fd875ad010c43398d032ac6bba492 to your computer and use it in GitHub Desktop.

Select an option

Save n0531m/be7fd875ad010c43398d032ac6bba492 to your computer and use it in GitHub Desktop.
BigQuery : Generate range of dates
SELECT day
FROM UNNEST(
GENERATE_DATE_ARRAY(DATE('2020-01-01'), DATE('2020-01-31'), INTERVAL 1 DAY)
) as day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment