Hi,
i have a table A:
ID | VALUE
1 | 2
2 | 4
4 | 5
...
Now i want to create a select statement that adds the value of row n to row n+1 and that produce the following output:
ID | VALUE
1 | 2
2 | 6 (= 2 + 4)
3 | 11 (= 5 + 6)
...
I am sure there is an easy way to handle this.
Thx for any help.
i have a table A:
ID | VALUE
1 | 2
2 | 4
4 | 5
...
Now i want to create a select statement that adds the value of row n to row n+1 and that produce the following output:
ID | VALUE
1 | 2
2 | 6 (= 2 + 4)
3 | 11 (= 5 + 6)
...
I am sure there is an easy way to handle this.
Thx for any help.