By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 4 Duplicates: 0 Warnings: 0
Records: 8 Duplicates: 0 Warnings: 0
| department | father | sum_print |
|---|---|---|
| dp1 | null | 24 |
| dp2 | null | null |
| dp3 | dp1 | null |
| dp4 | dp2 | null |
| null | null | 35 |