Hi,
Im having a table with 4 columns as below
Sno Opening Plusvalue MinusValue Closing
1 0 5 2 0
2 0 8 4 0
3 0 8 6 0
4 0 9 7 0
Formula for arriving my closing column is
Closing = Opening+Plusvalue-MinusValue
Formula for arriving my opening column is
Opening = Previous column closing
My required output is
Sno Opening Plusvalue MinusValue Closing
1 0 5 2 3
2 3 8 4 7
3 7 8 6 9
4 9 9 7 11
I need a query to acheive this output