By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | fk_id | col1 | col2 | col3 |
---|---|---|---|---|
1 | 10020 | a | b | 100 |
2 | 10020 | a2 | b2 | null |
3 | 10020 | a3 | null | 300 |
4 | 10020 | null | b4 | 400 |
5 | 10020 | null | null | 500 |
6 | 10020 | null | null | null |
7 | 10020 | a7 | b7 | 700 |
id | fk_id | col1 | col2 | col3 |
---|---|---|---|---|
1 | 10020 | a | b | 100 |
7 | 10020 | a7 | b7 | 700 |