Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old July 1st, 2003, 12:41 PM
amber141 amber141 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 42 amber141 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 23 sec
Reputation Power: 6
Send a message via ICQ to amber141
Question Design a db for hotel booking

Hi,

Say a travel agency make block book for some rooms in a hotel
The agents will assign these rooms (just set status to assign)

Problem:
How to design the DB WHEN the block booking date is FROM 01/06/2003 to 30/06/2003
and room assigned to agent is FROM 02/06/2003 to 04/06/2003?

The same room will be available on 01/06/2003 and 05-30/06/2003.

How do check the availablity of the rooms now?

I am currently saving the block booking for per room together with the book from and book to date as one record in room table.

The assignment by agents are saved as room_no, assigned_date_from, assigned_date_to as assignment table.

Note the room_no is not the pk of room table. It is the number on the doorplate of a room.

Doing things the above way will save on no of rows but it is difficult to get data. If I would to save each day as individual row. There will be a lot of rows.

Thanks

Last edited by amber141 : July 1st, 2003 at 01:13 PM.

Reply With Quote
  #2  
Old July 1st, 2003, 01:15 PM
amber141 amber141 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 42 amber141 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 23 sec
Reputation Power: 6
Send a message via ICQ to amber141
Unhappy

I begin to think that for the ease and convient, I am better off inserting room per day per record instead of room per block date per records. Any one has got similar experiences?

Reply With Quote
  #3  
Old July 23rd, 2003, 10:32 AM
Notorious Notorious is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 Notorious User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi amber what do you meant by block booking : "WHEN the block booking date is FROM 01/06/2003 to 30/06/2003
and room assigned to agent is FROM 02/06/2003 to 04/06/2003? " So have you decided on the solution please let me know because I am designing hotel database too(starting to) stil got no clue. cheers

Reply With Quote
  #4  
Old July 23rd, 2003, 10:42 AM
amber141 amber141 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 42 amber141 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 23 sec
Reputation Power: 6
Send a message via ICQ to amber141
Hi,
I put that idea on hold. Now working on other projects.
Well, block booking means to block a room for a period say from 1st of June to 31st of June by the tour agency. A tour guide may then book the room for a period within the timeframe of the agency booking? Got it?
As for the solution, sorry no solution at the moment. How about searching for a similar hotel booking application.
You can sneak a peep at their database design.
Try sourceforge.net
There are a lot of open source projects.

Regards,
amber

Reply With Quote
  #5  
Old July 23rd, 2003, 10:45 AM
Notorious Notorious is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 Notorious User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the reply

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Design a db for hotel booking


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway