调试SQL连接每个语句

时间:2015-06-03 05:37:47

标签: join google-bigquery

我想知道如何调试SQL JOIN EACH语句。请参考以下代码提供一些有用的技巧:

SELECT TAT.*,CLAIM.MASC_NM,
      CLAIM.COUNTRY,CLAIM.CARRIER_MODEL 
      FROM X TAT JOIN  EACH
     (
      (SELECT CLAIM_NUM, MASC_NM AS MASC_NM, COUNTRY, 
       CARRIER_MODEL FROM Y CLAIMS WHERE UPLOAD_DT>='2014-01-01' 
       GROUP  BY CLAIM_NUM, MASC_NM, COUNTRY, CARRIER_MODEL) CLAIM
       LEFT JOIN Z 
        ON TAT.CLAIM_NUM=CLAIM.CLAIM_NUM

1 个答案:

答案 0 :(得分:0)

对于starter,确保每个join语句都有一个“On”语句