Created
June 1, 2022 19:44
-
-
Save Wittline/9eb4bb41204eee35c6ea94230fcd62a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert into {project}.{dataset}.{tabledestination} | |
(id, category, lastdate) | |
select id, category, lastdate | |
from {project}.{dataset}.{tablesource} | |
WHERE EXTRACT(YEAR FROM lastdate) = {year} and category = '{category}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment