我有两个桌子
TABLE1
-DATADATE
-ISIN
-INDEXNAME
TABLE2
-AS_OF_DATE
-ISSUER_ISIN
-GPSCORE
-SPSCORE
我想通过匹配来合并两个表:
AS_OF_DATE = DATADATE
and
ISIN = ISSUER_ISIN
答案 0 :(得分:0)
尝试这个:
SELECT * FROM TABLE1 tb1
INNER JOIN TABLE2 tb2
ON tb1.DATADATE = tb2.AS_OF_DATE
AND tb1.ISIN = tb2.ISSUER_ISIN