I have a single column table. The column is as follows:
1 2 3 4 5 ...
I want to create a query that displays another column that will have the previous value added to it. So:
1 1 ( 0 + 1 ) 2 3 ( 1 + 2 ) 3 5 ( 2 + 3 ) 4 7 ( 3 + 4 ) 5 9 ( 4 + 5 ) 9 14 (5 + 9) 45 54 ( 9 + 45)
How do I build a query to accomplish this?
Essentially, I just want the difference between ROW[X] and ROW[X-1] .
source share