题目挺花哨,其实就是用窗口函数求滚动sum

select grade, sum(number) over (order by grade) as t_rank
from class_grade