Question: In the following database, Menu ID is the primary key of the MENU Relation. Event ID is the primary key of the EVENT Relation. Answer
In the following database, Menu ID is the primary key of the MENU Relation. Event ID is the primary key of the EVENT Relation. Answer the following questions concisely. Do not include extra, introductory or background information. There are five questions in this section of the exam. Be sure to answer all five questions in your own words. Do not copy statements from any source.
Menu ID Menu Type Menu Description
| 2645 | Breakfast | Standard breakfast |
| 2700 | Lunch | Basic lunch |
| 3134 | Lunch | Expensive lunch |
| 3688 | Dinner | Basic dinner |
| 3906 | Dinner | Expensive dinner |
MENU Relation
Event Event
Event ID Date Location Time Menu ID
| 15367 | 6/25/18 | Memphis | 1PM | 3134 |
| 17008 | 10/11/18 | Memphis | 1PM | 2700 |
| 17562 | 12/24/18 | Nashville | 5PM | 3688 |
| 19341 | 12/24/18 | Nashville | 5PM | 3906 |
| 20629 | 12/31/18 | Memphis | 11PM | 3688 |
| 21448 | 12/31/18 | Nashville | 11:30PM | 3688 |
| 22264 | 1/1/19 | Memphis | 10AM | 2645 |
| 25489 | 1/1/19 | Nashville | 9AM | 2645 |
EVENT Relation
1. Menu ID 3688 appears once in the MENU Relation and three times in the EVENT Relation. Does this constitute data redundancy? Why or why not?
2. In terms of referential integrity, if the Delete Rule between the two relations is Cascade and an attempt is made to delete the record for Menu ID 3688 in the MENU Relation, what would or would not happen in each relation?
3. Which normal form are these relations in? Explain.
4. There is a one-to-many binary relationship between these two tables. How do we know its a one-to-many relationship? How do we know its a binary relationship?
5. Assume that these two tables constitute the entire database. How many foreign keys are there in the MENU relation and what are they? How many foreign keys are there in the EVENT relation and what are they? Justify your answers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
