📅  最后修改于: 2022-03-11 15:05:10.144000             🧑  作者: Mango
with cte as
(
select id, home, date , player, resource,
Row_Number()Over(Partition by home order by date desc) rownumber from TestTable
)
select id, home, date , player, resource from cte where rownumber=1