If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > database of hotel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-11, 06:56
Jessica2 Jessica2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 2
database of hotel

Hello i have to do a database of an hotel but i need help because it looks wrong and i dont know how to connect the different tables. this is what i have done so far, the names with underlines are keys. I need help because im kind of stuck so any help would be appreciated.


COSTUMER
costumerid
firstname
lastname
adress
email
phonenr

STAFF
staffid
firstname
lastname
socialsecuritynumber
shift

ROOM
roomid
roomtype

SALES
articlenr
articlename

DINNERORDERING
orderingid
amount
date

BOOKING
bookingid
costumerid
roomid
fromdate
todate
Reply With Quote
  #2 (permalink)  
Old 11-16-11, 14:09
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
What a invoice table
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #3 (permalink)  
Old 11-18-11, 05:06
Jessica2 Jessica2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 2
ok i will try and do that, thank you for the help.
Reply With Quote
  #4 (permalink)  
Old 11-18-11, 05:54
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
costumer presumably should read customer

a specific booking will have a specific (agreed) rate which may or may not be the same as the scheduled rate for that room or room type for that period

Id expect a table of rates
eg a single night, multiple night, weekend.
I'd expect rooms to be banded
ie
type 1 rates
type 2 rates

Id probably want to store the cusotmers credit details for a booking, or against damages / other charges

Id probably want some form of mechanism to store extra items such as food, drinks, whatever against a customer booking
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On