How can I write this SQL query in VB.NET 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';
Thanks
Well, the reasonably direct C# conversion would be something like:
I would imagine you could convert that to VB pretty similar. Unfortunately Reflector doesn’t do a good job on this one, but the clauses should convert 1-for-1 as far as I’m aware.