technowerk
November 19th, 2007, 05:34 AM
Hi,
Can somebody help me implement fibonacci in SQL2000?
I have a table 'CUSTOMER' as follows
CUSTOMER AMOUNT
A 1000
B 2000
c 8000
d -6000
e 11000
f -3500
I need to apply fibonacci to get another column 'BALANCE' in the same table as follows
CUSTOMER AMOUNT BALANCE
A 1000 1000
B 2000 3000
c 8000 11000
d -6000 5000
e 11000 16000
f -3500 12500
Balance is cumulative addition of all values in 'AMOUNT'. How can I do this?
Thanking you in anticipation.
Can somebody help me implement fibonacci in SQL2000?
I have a table 'CUSTOMER' as follows
CUSTOMER AMOUNT
A 1000
B 2000
c 8000
d -6000
e 11000
f -3500
I need to apply fibonacci to get another column 'BALANCE' in the same table as follows
CUSTOMER AMOUNT BALANCE
A 1000 1000
B 2000 3000
c 8000 11000
d -6000 5000
e 11000 16000
f -3500 12500
Balance is cumulative addition of all values in 'AMOUNT'. How can I do this?
Thanking you in anticipation.