Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql select maximum column with other columns returned

 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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #select #maximum #column #columns #returned
ADD COMMENT
Topic
Name
5+5 =