By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| SUM(cost) | columnA_dominant | columnB_dominant | columnA_percentage | columnB_percentage |
|---|---|---|---|---|
| 850 | Foo | Bar | 0.7500 | 1.0000 |
| SUM(cost) OVER() | columnA_dominant | columnB_dominant | columnA_percentage | columnB_percentage |
|---|---|---|---|---|
| 850 | Foo | Bar | 0.7500 | 1.0000 |