这题遇到一个新知识sum(a) over (order by b)即对于
b-----a1-----23-----12-----3结果:b-----a1-----22-----2+33-----2+3+1