the table is:
create table test ( id string, name string, age string, modified string)
data like this:
id name age modife
Give this a try:
select t1.* from test t1 join ( select id, max(modifed) maxModified from test group by id ) s on t1.id = s.id and t1.modifed = s.maxModified
Fiddle here.
Left outer join solution here.
Let us know which one runs faster :)