Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Running Totals (Balance)

Author  Topic 

Scott
Posting Yak Master

145 Posts

Posted - 2001-09-27 : 11:08:40
If I return a query with a column of values how can I add a running total to this field.
eg: select from database:

Cost
-------
1
3
5
2

Want to be able to get:

Cost Balance
---------------
1 1
3 4
5 9
2 11

Any ideas??

   

- Advertisement -