题解 | #获得积分最多的人(一)#
获得积分最多的人(一)
http://www.nowcoder.com/practice/1bfe3870034e4efeb4b4aa6711316c3b
select * from (select name,sum(grade_num) grade_sum from user
join grade_info on id=user_id
where type='add'
group by user_id) t
order by grade_sum desc
limit 1;