Reservation Table
CheckInDate datetime Unchecked
CheckOutdate datetime Unchecked
NoOfDays int Unchecked
RoomId int Unchecked
Booking_Charges float Unchecked
NoOfAdults int Checked
NoOfKids int Checked
room Table
RoomId int Unchecked
RoomType varchar(50) Unchecked
on my default.aspx
I have this
but it uses calendar control...
My Aim is to search the available rooms....as in to get the rooms that is not in reservation table at the particular date selected
How can i achieve that...
Thanks in advance
Posted Jul 26, 2013, 2:54 PM
select * from room where RoomId not in(select RoomId from Reservation) and checkindate <> givendate and checkoutdate <> givendate.
I have no tested the queries.
Iftikar HussainPosted Jul 26, 2013, 6:05 AM
Try your sql query like this
Regards,
Iftikar