bnbprojprobs
08-17-2004, 10:05 PM
Hi,
I have tables called room_status and room_info
room_status= room_id : date : status
room_info= room_id : type : rate
What I want to do is only make an entry in room_status when
a room is booked, as it is obviously available otherwise(duh) but
I don't know how to format a SELECT statement to bring back
rooms available on a specific date by only returning results from
the room_information table which do not have an entry in the room_status
table for a specific date, which is the case if I don't formally record that
a room is available.
thanks ppl
I have tables called room_status and room_info
room_status= room_id : date : status
room_info= room_id : type : rate
What I want to do is only make an entry in room_status when
a room is booked, as it is obviously available otherwise(duh) but
I don't know how to format a SELECT statement to bring back
rooms available on a specific date by only returning results from
the room_information table which do not have an entry in the room_status
table for a specific date, which is the case if I don't formally record that
a room is available.
thanks ppl