Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active June 22, 2016 03: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 YumaInaura/7209e340a9efa7d427a7db5895cb3c21 to your computer and use it in GitHub Desktop.
Save YumaInaura/7209e340a9efa7d427a7db5895cb3c21 to your computer and use it in GitHub Desktop.
BigQuery | TABLE_DATE_RANGE テーブルに対して JOIN 出来ない ref: http://qiita.com/YumaInaura/items/bcb299dfcbdbbabb608d
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
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