join 优化聚合子查询问题
select u.username,k.date,k.kills from kills k join users u on k.username=u.userid
where k.kills=(select max(c.kills) from kills c where u.userid=c.userid);
加粗的这个怎么就找出每个人杀怪的最大数了?
谢谢了·
select u.username,k.date,k.kills from kills k join users u on k.username=u.userid
where k.kills=(select max(c.kills) from kills c where u.userid=c.userid);
加粗的这个怎么就找出每个人杀怪的最大数了?
谢谢了·
2016-10-29
举报