By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ORDER_ID | ROOT | HOSPITAL | LAB | SECTION | SUBSECTION | BENCH |
---|---|---|---|---|---|---|
12345 | DF SubSection | DE Hospital | DE Lab | DE Section | DF SubSection | null |
23456 | DG bench | DE Hospital | DE Lab | DE Section | DF SubSection | DG bench |
34567 | DE Section | DE Hospital | DE Lab | DE Section | null | null |