By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
column1 | column2 | column3 | sum | sum2 | value |
---|---|---|---|---|---|
1 | 2 | 3 | 6 | 6 | 1 |
1 | null | null | null | 1 | 1 |
null | 4 | 5 | null | 9 | 4 |
null | null | 6 | null | 6 | 6 |
0 | 0 | 0 | 0 | 0 | 0 |
null | null | null | null | 0 | 100 |
column1 | column1_b |
---|---|
1 | 1 |
1 | 1 |
0 | 0 |
0 | 0 |
0 | 0 |
0 | 0 |