有多组数据,分别是收入,支出,余额,它们的关系是:本期余额=上次余额+收入-支出 /* 测试数据: Create Table tbl([日期] smalldatetime,[收入] int ,[支出] int) Insert Into tbl SELECT '2004-02-11', 60, 45 union SELECT '2004-10-01',60, 45 union SELECT '2004-10-02',40, 50 union SELECT '2004-10-15',50, 40 u…