SQL выберите максимальный столбец с другими возвращенными столбцами
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
Perfect Pollan