Complex select query
- From: "Pankaj" <panahuja@xxxxxxxxx>
- Date: 26 Oct 2006 01:11:08 -0700
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
.
- Follow-Ups:
- Re: Complex select query
- From: Steve
- Re: Complex select query
- From: Usenet
- Re: Complex select query
- Prev by Date: Please Help! - PHP 5 + APACHE 2.2 + ORACLE 10.2 on windows box
- Next by Date: Re: Complex select query
- Previous by thread: Please Help! - PHP 5 + APACHE 2.2 + ORACLE 10.2 on windows box
- Next by thread: Re: Complex select query
- Index(es):
Relevant Pages
|