I have a table of 4 fields in chronological order. The rate, the cost, the net and the date. I would like to write a code or store procedure that would allow to update the NetCost field as illustrated below.
NetCost = Previous NetCost + (Rate * PreviousNetCost)
Date Rate Cost NetCost
1/1/2008 -0.20 -100 36
1/2/2008 -0.50 -18 18
1/3/2008 -0.20 - 3.6 14.4
Start Free Trial