当聚合函数+窗口函数+order by 可以实现滚动求和的目标

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