Last active
June 22, 2016 03:44
-
-
Save YumaInaura/7209e340a9efa7d427a7db5895cb3c21 to your computer and use it in GitHub Desktop.
BigQuery | TABLE_DATE_RANGE テーブルに対して JOIN 出来ない ref: http://qiita.com/YumaInaura/items/bcb299dfcbdbbabb608d
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
SELECT | |
* | |
FROM | |
TABLE_DATE_RANGE(single.woman, TIMESTAMP('2016-12-24'), TIMESTAMP('2016-12-25') ) AS woman | |
LEFT JOIN | |
[single.man] AS man | |
ON | |
woman.left_hand = man.right_hand |
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
SELECT | |
* | |
FROM ( | |
SELECT | |
* | |
FROM | |
TABLE_DATE_RANGE(single.woman, TIMESTAMP('2016-12-24'), TIMESTAMP('2016-12-25') ) AS woman | |
LEFT JOIN | |
[single.man] AS man | |
ON | |
woman.left_hand = man.right_hand |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment