简介
select user.id, user.name,t.grade_sum
from (
select user_id,sum(grade_num) as grade_sum
from grade_info group by user_id
having grade_sum =
( select sum(grade_num) as grade_sum from grade_info
group by user_id order by grade_sum desc limit 1)
) t
inner join user
on t.user_id=user.id
order by user.id
---------------------------我的天空里没有太阳,总是黑夜,但并不暗,因为有东西代替了太阳。虽然没有太阳那么明亮,但对我来说已经足够。凭借着这份光,我便能把黑夜当成白天。我从来就没有太阳,所以不怕失去。
--------《白夜行》