By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Employee | Department | total_dept |
---|---|---|
A | 10 | 3 |
A | 11 | null |
A | 12 | null |
B | 13 | 1 |
Employee | Department | total_dept |
---|---|---|
A | 10 | 3 |
A | 11 | null |
A | 12 | null |
B | 13 | 1 |