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

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 11th, 2005, 12:50 PM
Harlequeen Harlequeen is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 12 Harlequeen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m
Reputation Power: 0
Booking System

Hi All

I have to create a databse for a project I'm doing, it is a booking system for a hotel. Quite basic, as I'm quite a novice. I have to be able to create, amend and cancel a booking and produce a list of guests for a particular date.

I think I need 3 tables. Would someone look them over and perhaps give me some advice if I am wrong.

GUEST
Guest_ID(PK)
Surname
Initials
Address1
Address2
Address3
Tel_No
e-mail

ROOMS
Room_no(PK)
Type

BOOKING
Booking_ID(PK)
Guest_ID(FK)
Room_No(FK)
Date_from
Date_to
No_of_people

This is all very new to me and normalisation is a mystery. I am grateful for any comments.

Cheers
Harelqueen

Reply With Quote
  #2  
Old March 11th, 2005, 02:12 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
If two people are staying in a room, you only need to know the name of one person?
I noticed "No_of_people"... so I guess "MadCowDzz" can book a room for four people?
Nothing wrong with that, it's just important to note... had you needed many guest-records for one booking your table structure would be slightly different.

Other than specifying these minor specifics, your table structure looks fine to me.
I assume this is a school project as I hope a real world system would need MUCH more information =)

Reply With Quote
  #3  
Old March 12th, 2005, 02:25 AM
Harlequeen Harlequeen is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 12 Harlequeen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m
Reputation Power: 0
Thanks

Thanks for your comments.

Yes, it is a school/college project and is the first attempt at building a database to practice some sql/php. This is why, as you say, little is actually needed in the way of further information and only the name of the person booking the room.

I am very new to this, so didn't want to proceed without havings someone check it out.

Thanks again,

harlequeen

Reply With Quote
  #4  
Old March 14th, 2005, 08:38 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Your design looks fine to be, but remember that I don't know the full requirements of your project.
Your best bet might be to consult with your instructor or even some fellow students.


Reading my post again, I cant believe I said "specifying these minor specifics" =)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Booking System


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 6 hosted by Hostway