我想知道如何调试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
答案 0 :(得分:0)
对于starter,确保每个join语句都有一个“On”语句