0
此子查詢的作品2005精簡版4如何在SQL Server 2005 Compact Edition 3.1中進行此查詢?在SQL Server
SELECT TableA.serialNo
FROM TableA,
(SELECT MAX(TableB.lotNo) AS lotNo,TableA.codeA,TableA.codeB
FROM TableA, TableB
WHERE (TableA.codeA =TableB.codeA)
AND (TableA.codeB = TableB.codeB)
AND ((LEN(TableA.openDate) > 0) OR TableA.openDate IS NOT NULL)
GROUP BY
TableA.codeA, TableA.codeB) a
WHERE (TableA.lotNo < a.lotNo)
AND (TableA.codeA = a.codeA)
AND (TableA.codeB = a.codeB)
AND ((LEN(TableA.endDate) = 0) OR TableA.endDate IS NULL)
它如何在SQL Server 2005精簡版3.1進行?
謝謝!
一些重寫你知道,它並沒有在3.1的工作?查詢在3.1中給出了具體的錯誤嗎? – 2010-09-08 08:43:02