日期:2014-05-18 浏览次数:20493 次
--方法一: select a.* from t a where c1 = (select min(c1) from tb where c2=a.c2 and c3=a.c3 and c4=a.c4) --方法二: select a.* from t a, (select min(c1) c1 , c2,c3,c4 from t group by c2,c3,c4) b where a.c1=b.c1 and a.c2=b.c2 and a.c3=b.c3 and a.c4=b.c4
------解决方案--------------------
select a.* from T a where not exists(select 1 from T where C2=a.C2 and C3=a.C3 and C1<a.C1)