Skip to content

Instantly share code, notes, and snippets.

@leighajarett
Last active April 5, 2021 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leighajarett/2b51722c1607d3749cd80ef3508c34e8 to your computer and use it in GitHub Desktop.
Save leighajarett/2b51722c1607d3749cd80ef3508c34e8 to your computer and use it in GitHub Desktop.
Declare a Variable in BigQuery
-- Declare a variable to hold the timeframe (month, quarter or year)
DECLARE timeframe STRING DEFAULT "month";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment