Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 27th, 2007, 06:15 AM
hadi
Guest
 
Posts: n/a
Default Restaurant Database

Imagine a restaurant which we want to store information about. Two
types of people are related to it.
1) People who simply call and the foods are delivered to them.
2) People who actually come to the restaurant and eat their food
there.
For both categories, order information(OrderID, OrderDate, EmployeeID)
is stored. But for the first category the customer
information(CustomerID, Sirname, Telephone, Address) is also stored.
Could any one help on how to draw the ER diagram for this database?
Thanks a lot.

  #2  
Old February 27th, 2007, 04:05 PM
ApexData@gmail.com
Guest
 
Posts: n/a
Default Re: Restaurant Database

Imagine a restaurant which we want to store information about. Two
Quote:
types of people are related to it.
1) People who simply call and the foods are delivered to them.
2) People who actually come to the restaurant and eat their food
there.
For both categories, order information(OrderID, OrderDate, EmployeeID)
is stored. But for the first category the customer
information(CustomerID, Sirname, Telephone, Address) is also stored.
Could any one help on how to draw the ER diagram for this database?
I would have 3-Tables (EmployeeTable CustomerTable OrderTable). No pun
intended.
I would add the CustomerID field to the Order Table. Then link the
Employee and Customer Tables to the OrderTable as a one to many
relationship, and include Referential Integrity with CascadingUpdates.


 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles