I need to cross reference 2 tables.
within tb1 is booking_ref, investor
within tb2 is booking_ref, investor, cost
The trouble is if there in no cost, no record is created in table 2
So I have the following query...
SELECT
tb1.booking_ref, tb1.investor, tb2.cost
FROM
tb1, tb2
WHERE
tb1.booking_ref = tb2.booking_ref
AND
tb1.investor = tb2.investor
AND
tb1.investor = ''12345''
this displays all bookings where there is a matching booking_ref in tb2 but I also need to display bookings where there is not a matching booking_ref
any ideas??