select a ,max(b) as b 
from tablename
group by a

解决方案 »

  1.   

    select min(a) a,max(b)b from tablename
      

  2.   

    yjdn(文刀无尽) 的正确的!!!!
    符合你的要求!!!!!!!!!
      

  3.   

    select a,max(b) from tab1
    group by a
    having count(a)>1
      

  4.   

    sasacat(傻傻猫) 
    标准答案
      

  5.   

    select a,max(b) from tab1
    group by a
      

  6.   

    select a ,max(b) as b 
    from tablename
    group by a
      

  7.   

    select a ,max(b) as b 
    from tablename
    group by a这个查询的结果是  (1  4)
    有没有(2  4) 啊???
      

  8.   

    select a,max(b) from tab1
    group by a
    having count(a)>1正解!!!!