1 row_number() OVER(ORDER BY RefNo) : 列数 OK
2 RANK() OVER (ORDER BY RefNo) : 列数 OK
3 sum(AmountTotal) over( ) : 求和 OK
4 sum(...) over( order by ... ) ? 为什么不行
5 sum(AmountTotal) over( partition by pieces ) 同组内所行求和 OK
6 sum(...) over( partition by... order by ... ) ? 为什么不行