select id, name, sum(grade_num) as 'grade_sum' from user join grade_info on user.id=grade_info.user_id group by user_id having sum(grade_num)=(select max(grade_num) from (select sum(grade_num) as 'grade_num' from grade_info group by user_id) as a)