Re: hotel reservations
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Wed, 27 Sep 2006 11:25:59 -0500 (CDT)
SMTP server errors and a too-quick click made me close the message I
sent with all the nifty thread-ness... sorry.
//make reservation
insert into reservation(room_number, start_date, end_date)
values ('504', '12/10/2006', '14/10/2006')
//reservation inquiry for 13/10/2006:
select room_number
from room
where room_number not in
(select room_number
from reservation
where '13/10/2006' between start_date and end_date
)
The rest of the application is left as an exercise to the reader. :-)
--
Like Music?
http://l-i-e.com/artists.htm
.
- Prev by Date: Displaying MySQL results on runtime
- Next by Date: Re: [PHP] Displaying MySQL results on runtime
- Previous by thread: Displaying MySQL results on runtime
- Next by thread: strange errors from command line vs. web
- Index(es):