-----------
select top 1 username from t1 order by groupid,id

解决方案 »

  1.   

    select * from t1 A
    where not exists (select 1 from t1 where groupid=A.groupid and id<A.id)
      

  2.   

    select a.* from t1 a where not exists(select 1 from t1 where groupid=a.groupid and id<a.id)
      

  3.   

    select username from t1 A join 
    (select min(id) from t1 group by groupid) B on A.id = B.id
      

  4.   

    aniude(重返荣耀) 和 libin_ftsafe(子陌红尘) 几乎是同时回复的,没有抄袭,所以各得25分,谢谢