select ID, Name FROM (select ID, Name, max(ID) over (partition by Name) as MAX_ID from Customer) x where ID= MAX_ID