📜  sql 选择最大列并返回其他列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:10.144000             🧑  作者: Mango

代码示例1
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