473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.

Feb 27 '07 #1
1 8232
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?
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.
Feb 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fat Bloke | last post by:
Not very good at this... A friend has asked me to do his restaurant menu. This has several sections - Starters, Main Courses, Vegetarian, etc, each section having different items within it. ...
26
by: Brian | last post by:
I have to markup a couple of restaurant menus. Two examples follow: Clam Chowder Cup 3.25 / Bowl 6.95 Thick New England-style clam chowder with clams, diced onion and celery, bacon, red bell...
7
by: Paul T. Rong | last post by:
Hello everybody, I am making a db for recording ordered dishes for kitchen and the billing in a restaurant. There is one problem. Rarely but it happens, two customers sharing one table, for...
15
by: Paul T. RONG | last post by:
Hello, I am making a restaurant database (it is much more complicated than I thought before!), now it comes to the last stage and I come across a problem. I will explain it in detail. In a...
1
by: rumblepup | last post by:
I thought this would be simple, but I cannot find anywhere a downloadable or accessable national restaurant database. Don't even need a big one, just the major chains. I had downloaded an access...
0
by: hadi | last post by:
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...
1
by: hadi | last post by:
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 food is delivered to them. 2) People who actually...
2
by: Brian Kendig | last post by:
I'm trying to make a web page with a restaurant menu on it. Each line on the menu is the name of a dish (left-justified) and that dish's price (right-justified), with a dotted line between them....
4
by: Paulo | last post by:
Hi, I finished a asp.net restaurant/bar system, but when the waiter clicks "send itens" on IE palmtop, it needs to send the itens to a printer wich will be on the kitchen... What is the best...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.