a.user_name, b.timestr, b.kills from user1 a join user_kills b on a.id = b.user_idjoin (selectuser_id,max(kills) as cnt from user_kills groupbyuser_id) c
on b.user_id= c.user_idand b.kills = c.cnt
where子句方法
select a.user_name, b.timestr, b.kills from user1 a join user_kills b on a.id = b.user_idwhere (b.user_id,b.kills) in (selectuser_id,max(kills) as cnt from user_kills groupbyuser_id);