有人可以幫助將以下內容轉換爲LINQ To SQL查詢嗎?將SQL轉換爲LINQ To SQL語句
select * from projects pr
where pr.Active<>0
AND CapturedDocumentType=2
AND SubmissionReminderTypeID > 0
AND pr.ProjectID In(SELECT Max(wpr.ProjectID) as ProjID
FROM Projects wpr
where wpr.Active<>0
AND wpr.CapturedDocumentType=2
AND wpr.SubmissionReminderTypeID > 0
group by wpr.EmployeeID)
在這個查詢,你不需要第3 where條件。你已經在你的嵌套查詢中檢查了。 – 2011-04-07 15:23:00