在下面的查询中,我使用GROUP BY
子句来获取最近更新的记录列表取决于更新日期。GROUP BY
但是由于某些内部原因,我希望查询没有子句。可以请任何人帮我解决这个问题。
SELECT Proj_UpdatedDate,
Proj_UpdatedBy
FROM ProjectProgress PP
WHERE Proj_UpdatedDate IN (SELECT MAX(Proj_UpdatedDate)
FROM ProjectProgress
GROUP BY
Proj_ProjectID)
ORDER BY
Proj_ProjectID