计算运行总量/运行余额
create table Transactions(Tid int,amt int)
insert into Transactions values(1, 100)insert into Transactions values(2, -50)insert into Transactions values(3, 100)insert into Transactions values(4, -100)insert into Transactions values(5, 200)
TID amt balance--- ----- -------1 100 1002 -50 503 100 1504 -100 505 200 250
amt
amt
慕标5832272
冉冉说
相关分类