Connecting Tech Pros Worldwide Help | Site Map

Restaurant Database

  #1  
Old February 27th, 2007, 06:15 AM
hadi
Guest
 
Posts: n/a
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

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.


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
restaurant database hadi answers 1 March 15th, 2007 08:55 PM
Restaurant Database hadi answers 0 February 27th, 2007 06:15 AM
Help! Problem on the final stage of a restaurant database Paul T. RONG answers 15 November 13th, 2005 05:48 AM
puzzledom in a restaurant database Paul T. Rong answers 7 November 13th, 2005 04:38 AM