Skip to content

Instantly share code, notes, and snippets.

@mshakhomirov
Created November 24, 2022 14:44
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 mshakhomirov/1c62d79cd9690140c569cd047b9d491f to your computer and use it in GitHub Desktop.
Save mshakhomirov/1c62d79cd9690140c569cd047b9d491f to your computer and use it in GitHub Desktop.
SELECT *
FROM `firebase.events`
WHERE IF(condition,
_TABLE_SUFFIX BETWEEN '20170101' AND '20170117',
_TABLE_SUFFIX BETWEEN '20160101' AND '20160117')
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment