Jeg spekulerer på, om dette ville virke:
select * from table where id in (select distinct max(id) from table group by name)
Jeg spekulerer på, om dette ville virke:
select * from table where id in (select distinct max(id) from table group by name)