select grade,sum(number) over (order by grade) as t_rank
from class_grade
order by grade
思路:掌握窗口函数的用法