hi,
i am doing a hotel reservation system and i don't know how to get the rooms available !
can some one help pls ?
i have these tables:
[B][U]tblRoom[/U][/B]
ID--int
RoomNo--int
RoomType--int
BedType--varchar(25)
RatePerNight--money
MaxNoOfPersons--int
[B][U]tblReservation[/U][/B]
ID--int
GuestID--int
DateOfReservation--datetime
NoOfPersons--int
RoomID--int
ArrivalDate--datetime
DepartureDate--datetime
TotalCost--money
CheckIn--bit (-this is set to true on arrival at the hotel)
CheckOut--bit (this is set to true before the departures)
Status--varchar(10) (- this is used to be updated when the reservation is booked, updated or canceled)