select a.* from 表 a where not exists(select 1 from 表 where n1=a.n1 and a2=n.a2 and n3<a.n3)