标签:item order by server 分组 art 写法 HERE desc span
Row_Number去重:
select * from (select *,row_number()over(partition by Servername order by Check_Date desc) Suquence from AuditItem) s where s.Suquence=1
Croup by写法:
select * from [dbo].[AuditItem] where Check_Date in (select Max(Check_Date) from AuditItem group by servername)
标签:item order by server 分组 art 写法 HERE desc span
原文地址:https://www.cnblogs.com/LC0507/p/11177613.html