日期:2014-05-18 浏览次数:20453 次
select min(AA),BB from Table_1 where CC='Z' group by BB
select * From ( select min(AA) as minAA,BB from Table_1 group by BB ) a where exists (select 1 From Table_1 where bb=a.bb and aa=a.minAA and cc='Z')