Reply to Re: best method. dates

Your name:

Reply:


Posted by ZeldorBlat on 10/31/05 01:57

Presumably you have something like this:

create table hotel (
hotel_id int not null
....
)

create table room (
room_id int not null
hotel_id int not null
....
)

Then create a table to store the bookings. Something like this:

create table booking (
room_id int not null,
bookingDate smalldatetime
)

The primary key for this table should be (room_id, bookingDate). If
there is a row for a given room and date, then it's booked on that
date. Otherwise it isn't.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация