------解决方案--------------------
select a.* from group_user_log a where not exists(select 1 from group_user_log where userid=a.userid and groupid=a.groupid and jointime>a.jointime )
------解决方案--------------------
------解决方案-------------------- 少了order by,。。。 select groupid,userid,min(jointime) jointime from group_user_log group by groupid,userid order by jointime desc;