By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
15 rows affected
id | Rolling_Sum | Rolling_Counter_Sum |
---|---|---|
1 | 6 | 1 |
2 | 7 | 2 |
3 | 8 | 3 |
4 | 4 | 1 |
5 | 9 | 2 |
6 | 15 | 3 |
7 | 7 | 1 |
8 | 15 | 2 |
9 | 9 | 1 |
10 | 19 | 2 |
11 | 1 | 1 |
12 | 2 | 2 |
13 | 3 | 3 |
14 | 1 | 1 |
15 | 4 | 2 |