E
Eva
Hi,
I need some help on writing a query.
I have got 3 tables. (Booking, CaravanBooking,
RoomBooking)
I want a query to retrieve details from all 3 tables.
the joining key is BookingID.
The problem i am having is that a person making a booking
may only book a caravan and not a room and therefore when
i join the 3 tables i do not get any results even if they
have a caravan booking (as the bookingID does not exist
in the roomBookings table).
Similarly they may book a room and not a caravan or they
may book both.
How can i write a query that will take this into
consideration??
I need some help on writing a query.
I have got 3 tables. (Booking, CaravanBooking,
RoomBooking)
I want a query to retrieve details from all 3 tables.
the joining key is BookingID.
The problem i am having is that a person making a booking
may only book a caravan and not a room and therefore when
i join the 3 tables i do not get any results even if they
have a caravan booking (as the bookingID does not exist
in the roomBookings table).
Similarly they may book a room and not a caravan or they
may book both.
How can i write a query that will take this into
consideration??