select name, sex ,deptname ,min(time) from 表 group by name, sex ,deptname 

解决方案 »

  1.   

    select * from tb a,(select min(time) time,name from tb group by name) b where a.time=b.time and a.name=b.name;
      

  2.   

    select a.* from tb a,(select min(time) time,name from tb group by name) b where a.time=b.time and a.name=b.name;
      

  3.   

    又是libin_ftsafe(子陌红尘) !
    查询是对的!
    上次俺的帖子也是你结的!
    谢谢你!
      

  4.   

    ORARichard(没钱的日子好难过啊)的也是一种方法!
    看来都很厉害哦!