By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
6 rows affected
id | a | b | c |
---|---|---|---|
1 | 1 | 1 | 1 |
2 | 2 | null | 2 |
3 | null | 3 | 3 |
4 | null | 4 | null |
5 | 5 | null | 5 |
6 | null | 6 | 6 |
col | non_NULLs | NULLs |
---|---|---|
a | 3 | 3 |
b | 4 | 2 |
c | 5 | 1 |