Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server select last row of each item in group by column

select ID, Name FROM 
(select ID, Name, max(ID) over (partition by Name) as MAX_ID
from Customer) x where ID= MAX_ID
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #server #select #row #item #group #column
ADD COMMENT
Topic
Name
4+5 =