select max(t1.列1),t1.列2 from 
表1 t1,
(select distinct 列2 from 表1) t2
where t1.列2 = t2.列2

解决方案 »

  1.   

    select max(列1),列2 from 表1 group by 列2
      

  2.   

    要查二个列以上
    我只想到下面的方法:select 表1.列1 , 表1.列2 , 表1.列3 from 表1 right join (select max(列1) as 列1 from 表1 group by 列2) as 表2 on表1.列1 = 表2.列1谁还有别的方法???
      

  3.   

    select * 
    from 表一 t1 
    where t1.列一>=(select max(t2.列一) from 表一 t2 where t1.列二=t2.列二)