select * from table s where s.rowid in (select max(t.rowid) from table t group by t.id having count(t.id)>1)