利用 over( order by xxx) 计算每等级及以上的数量
select grade,sum(number) over(order by grade) as t_rank from class_grade