By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
11 rows affected
id | deptId |
---|---|
1 | 2 |
2 | 1 |
3 | 6 |
id | contactId |
---|---|
1 | 2 |
2 | 6 |
id | NonImportantColumn |
---|---|
2 | New York, USA |
4 | Sydney, Australia |
id | contactId | parentBranchId | name |
---|---|---|---|
3 | 2 | null | Headoffice branch |
4 | 5 | 3 | Street1 branch |
5 | 7 | 7 | Some other head |
6 | 2 | null | Street2 branch |
id | contactId | parentBranchId | name |
---|---|---|---|
3 | 2 | null | Headoffice branch |
6 | 2 | null | Street2 branch |