SQL 计算累计和 sum() over( partition by order by )

0.数据

 1. sum(LABST) over()

 2. sum(LABST) over(order by MATNR)

 3.sum(LABST) over(order by MATNR,ZWEEK)

 4.sum(LABST) over(partition by MATNR order by MATNR)

 5.sum(LABST) over(partition by MATNR order by MATNR,ZWEEK)

 以上。实践完毕

猜你喜欢

转载自www.cnblogs.com/mingdashu/p/12100734.html