Sql server 取按日期最大的一条记录

select * from T_Test A where date=(select max(date) from T_Test B where A.[Name]=B.[Name]) 原表记录 执行后结果
相关文章
相关标签/搜索