前提是tab1和tab2都要有对应的numb
: select max(date) from ( select max(date) date from A unoin all select max(date) date from B ) aSELECTCASE WHEN A.DATE > B.DATE
THEN A.DATE
ELSE B.DATE
END
FROM A T1
JOIN B T2
ON A.XX = B.XX
欢迎分享,转载请注明来源:内存溢出
前提是tab1和tab2都要有对应的numb
: select max(date) from ( select max(date) date from A unoin all select max(date) date from B ) aSELECTCASE WHEN A.DATE > B.DATE
THEN A.DATE
ELSE B.DATE
END
FROM A T1
JOIN B T2
ON A.XX = B.XX
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)