1
如何在VB.NET LINQ中編寫此SQL查詢?如何在VB.NET中編寫此SQL查詢LINQ
SELECT COUNT(*) AS COUNT_NO
FROM A INNER JOIN B ON A.ID = B.ID
WHERE A.SERIAL_NO IN (SELECT MAX (A.SERIAL_NO)
FROM A INNER JOIN B ON A.ID = B.ID
GROUP BY A.SUBJECT_ID)
AND B.STATUS = 'N';
感謝
查詢中「group by」的用法是什麼? –