Re: Complex select query




"Pankaj" <panahuja@xxxxxxxxx> wrote in message
news:1161850268.732776.196440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|I am trying to book rooms in a hotel. A user searches for booking from
| 1st through 10th of a month, and if I already have a booking for 5th of
| that month, then the user should get a message that booking is not
| available.
|
| What is the best way of doing this? One method I can think about it
| checking the value of all records and if any of the fields contains a
| value, the results are not displayed. However, I do not find this
| method to be very efficient. Can this be done through a single query ?
|
| Thanks
| Pankaj


just an afterthought - having worked in lodging industry before. unless you
are booking at a resort with a *very* limited number of rooms or you're
booking a "special" room (presidential suite, governer's suite, etc.). you
will NEVER be reserving a SPECIFIC room for anyone.

hotels OVERBOOK so that they can maximize occupancy (and in turn, revenue).
they only book a certain TYPE of room (ns-k, s-q-k, etc.). they know from
benchmarking that x% of people who book will either cancel or just not show
up...or show up a day earlier/later than stated. the x% can be as precise as
seasonal, monthly, or any given day...x% could, and should, be dynamic. most
hotel software adjusts x% based on trends. hotels use a formulaic "buffer"
that is basically: actual number of rooms of typeA * buffer (where buffer
would be like 0.1)...this means they will allow typeA rooms to oversell by
10%. if typeA rooms were 50 and you wanted to use a 10% buffer, you'd allow
the reservations personnel reserve up to 55 typeA rooms total.

while hotel lingo calls this overbooking, it simply means in management
terms, we want to get as close as possible to having EVERY room filled on
the night(s) of...

hope that helps your architecture.


.



Relevant Pages

  • Re: Urgent Help Required
    ... FROM Driver, Booking ... hotels in London and then write a query that uses that as input to get the ... Average per hotel. ... "Running Microsoft Access 2000" ...
    (microsoft.public.access.queries)
  • Re: Hotel Booking Project Delemma
    ... when there are two different people assigned to One Hotel Booking, ... Smith and Jones booked into the same Hotel as a double ... So Smith and Jones come from the Member Table & are linked to the ... HotelBookings via the tblHotelBookingsToMembers. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Urgent Help Required
    ... London per what? ... with a subquery on the Booking table to find out which rooms are not ... The hotel considers the ... > Primary Key: RoomNo,HotelNo ...
    (microsoft.public.access.queries)
  • Re: Warning: Expedia.com overcharges for room reservations
    ... advertised room rate was $102.00/night. ... That happens all the time with many of the booking companies. ... agencies purchase blocks or X amount of rooms at a certain price. ... Hotel Z contracts with online booking engine Travel ABC that they can sell ...
    (alt.vacation.las-vegas)
  • Re: Gay Day @ Disney Deals!
    ... special link for Priceline) - as you will see, ... Are you going to Gay Days @ Disney this year??? ... Do you want to save money on a hotel room while you're there? ... days you are booking - book 2, get offered 2 more, etc] so you can try ...
    (rec.arts.disney.parks)