select * from tablename a
where c=(select max(c) from tablename where a=a.a)

解决方案 »

  1.   

    select aa.* 
    from table aa,(select a,max(c) from table group by a) bb
    where aa.a=bb.a and aa.c=bb.c
      

  2.   

    select * from tablename a
    where c=(select max(c) from tablename where a=a.a)
      

  3.   

    TO:lsxaa(小李铅笔刀) 
    没有为第 2 列(属于 'bb')指定列。3Q
      

  4.   

    select a.* 
    from table a,(select a,max(c) from table group by a) b
    where a.a=b.a and a.c=b.c这里已经有多次提出类似的问题了。
      

  5.   

    select * from tablename
    group by a having c=max(c)
      

  6.   

    3K :zicxc(冒牌邹建 V0.3)