У меня есть дерево таблиц table_1, table_2 и table_3, его структура его
table_1

table_2

table_3

В table_1 у меня есть unit_id и он общий,Я хочу выбрать данные во всех таблицах, например, unit_id = 5, используемый в table_2 и table_3, а строк зданий - шесть, строк участков - два, я хочу выбрать шесть строк building_id, building_area и около двух строк parcel_id и parcel_area, для unit_id =6 наоборот, 4 ряда участков и два ряда зданий, и один ряд зданий, когда unit_id = 7, и один ряд участков, когда unit_id = 8
select result example
unit_id building_id building_area parcel_id parcel_area
5 2 20 15 20
5 3 10 null null
5 4 30 null null
5 5 15 16 10
5 7 25 null null
5 8 15 null null
6 null null 21 30
6 null null 22 50
6 9 18 23 80
6 10 20 24 70
7 30 10 null null
8 null null 27 52