By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
6 rows affected
| id | multiplier | col1 | col2 |
|---|---|---|---|
| 1 | 2 | 1.53 | 3.06 |
| 2 | 3 | 3.06 | 9.18 |
| 3 | 2 | 9.18 | 18.36 |
| 4 | 2 | 18.36 | 36.72 |
| 5 | 3 | 36.72 | 110.16 |
| 6 | 1 | 110.16 | 110.16 |
Warning: Null value is eliminated by an aggregate or other SET operation.