By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
12 rows affected
| MONTH | R78 | rn |
|---|---|---|
| 1 | 1 | 0 |
| 2 | 3 | 0 |
| 3 | 6 | 0 |
| 4 | 10 | 1 |
| 5 | 15 | 2 |
| 6 | 21 | 3 |
| 7 | 28 | 4 |
| 8 | 36 | 5 |
| 9 | 45 | 6 |
| 10 | 55 | 7 |
| 11 | 66 | 8 |
| 12 | 78 | 9 |
| month | R78 |
|---|---|
| 4 | 1 |
| 5 | 3 |
| 6 | 6 |
| 7 | 10 |
| 8 | 15 |
| 9 | 21 |
| 10 | 28 |
| 11 | 36 |
| 12 | 45 |