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 2005 Forums
 Transact-SQL (2005)
 Running Total Fields

Author  Topic 

seyed
Starting Member

2 Posts

Posted - 2009-03-10 : 15:28:01
I am trying to get sum of column on a table witch it is comparing to the Previous rec.
I have added new column and using IIF to compare previous rec. and set the fields to one, but could not get the total on a new field.
Also did created new field to calculate comparing two rec. but new field could not check Previos rec. and crashed the application.

Anyone has any idea how to do this?

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-03-10 : 15:30:38
What did you try?
Go to Top of Page

seyed
Starting Member

2 Posts

Posted - 2009-03-10 : 15:35:54
I did try using new column and did not have sum and also new field and could not read previous rec.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-11 : 14:06:00
sorry we cant understand your issue correctly. post some data in below format and explain

http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page
   

- Advertisement -