Ok...
I have two tables.
i.Rooms : id,Numberofrooms,etc.....
ii. Bookings : bid,datefrom,dateto,rid (roomid),etc...
The user enter a date and i am trying to retrieve all the rooms which are not booked these dates...
So in the table of bookings i store all the records...Say that the 1st record is : 1,1/8/2001,8/8/2001,1(which is room rid (rid))
Then i store a second record 2,15/1/2001,23/1/2001,1 (again)
Then the user tries to find a room between 1/8/2001 and 8/8/2001.
Result???? The query i am trying to exetute retrieves alla the rid where are not between these dates...Ok with te first record...But what about the second???Is not between these dates but it is the same room....
Any advice???