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