What do i use to join the 2 statments below? If i do not put anything after "null" then the field does not show up in my command.
SELECT "v_basic_booking_data"."book_urn", "v_basic_booking_data"."fac_mnc", "v_basic_booking_data"."book_date", "v_basic_booking_data"."book_status", "v_basic_booking_data"."patient_name", "v_basic_booking_data"."proc_descr", "v_basic_booking_data"."surg_mnc",
"v_basic_booking_data"."pt_unit_number"
FROM "ormanager"."reportuser"."v_basic_booking_data" LEFT JOIN "ormanager"."reportuser"."v_basic_case_rec_data" ON "v_basic_booking_data"."book_urn" = "v_basic_case_rec_data"."book_urn"
WHERE "v_basic_booking_data"."book_status"='A' AND ("v_basic_case_rec_data"."book_urn" is null)
***need join here***
SELECT "v.BKA_02_Booking_1"."bk_pat_type"
FROM "ormanager"."reportuser"."v.BKA_02_Booking_1" INNER JOIN "ormanager"."reportuser"."v_basic_booking_data"
ON "v.BKA_02_Booking_1"."book_urn" = "v_basic_booking_data"."book_urn
SELECT "v_basic_booking_data"."book_urn", "v_basic_booking_data"."fac_mnc", "v_basic_booking_data"."book_date", "v_basic_booking_data"."book_status", "v_basic_booking_data"."patient_name", "v_basic_booking_data"."proc_descr", "v_basic_booking_data"."surg_mnc",
"v_basic_booking_data"."pt_unit_number"
FROM "ormanager"."reportuser"."v_basic_booking_data" LEFT JOIN "ormanager"."reportuser"."v_basic_case_rec_data" ON "v_basic_booking_data"."book_urn" = "v_basic_case_rec_data"."book_urn"
WHERE "v_basic_booking_data"."book_status"='A' AND ("v_basic_case_rec_data"."book_urn" is null)
***need join here***
SELECT "v.BKA_02_Booking_1"."bk_pat_type"
FROM "ormanager"."reportuser"."v.BKA_02_Booking_1" INNER JOIN "ormanager"."reportuser"."v_basic_booking_data"
ON "v.BKA_02_Booking_1"."book_urn" = "v_basic_booking_data"."book_urn