I just need someone to draw the digram for me. the instructions are down below in the answer. (Its all the way in the end) Following are the requirements from a Restaurant Chain: A restaurant chain has several store locations in a city (with a name and zipcode stored for each), and each is managed by one manager. Managers manage only one store. Each restaurant location has its own unique set of menus. Most have more than one menu (e.g., lunch and dinner menus). Each menu has many menu items and with different prices on different menus. Represent this situation of restaurants with an E-R diagram. Answer: Entities and Attributes: Store Location Attributes: Store ID (Primary Key), Store Name, Zipcode Manager Attributes: Manager ID (Primary Key), Name Menu Attributes: Menu ID (Primary Key), Menu Type (e.g., Lunch, Dinner), Store ID (Foreign Key) Menu Item Attributes: Item ID (Primary Key), Item Name, Price, Menu ID (Foreign Key) Relationships: Manages Relationship One-to-One between Manager and Store Location. Each store location is managed by one manager, and each manager manages only one store location. Has Relationship One-to-Many between Store Location and Menu. Each store location has one or more menus. Includes Relationship One-to-Many between Menu and Menu Item. Each menu includes many menu items, and each menu item belongs to one menu. E-R Diagram Representation: Store Location entity is connected to Manager with a one-to-one relationship labeled as "is managed by." Store Location is also connected to Menu with a one-to-many relationship labeled as "has." Menu is connected to Menu Item with a one-to-many relationship labeled as "includes." A rectangle labeled "Store Location" with lines connecting to a rectangle labeled "Manager," indicating the one-to-one relationship. A rectangle labeled "Menu" with lines connecting back to "Store Location," indicating the one-to-many relationship. And a rectangle labeled "Menu Item" connected to "Menu," also indicating a one-to-many relationship. Each rectangle would have a list of its attributes inside. The primary keys would be underlined.
I just need someone to draw the digram for me. the instructions are down below in the answer. (Its all the way in the end)
Following are the requirements from a Restaurant Chain:
A restaurant chain has several store locations in a city (with a name and zipcode stored for each), and each is managed by one manager. Managers manage only one store.
Each restaurant location has its own unique set of menus. Most have more than one menu (e.g., lunch and dinner menus). Each menu has many menu items and with different prices on different menus.
Represent this situation of restaurants with an E-R diagram.
Answer:
Entities and Attributes:
-
Store Location
- Attributes: Store ID (Primary Key), Store Name, Zipcode
-
Manager
- Attributes: Manager ID (Primary Key), Name
-
Menu
- Attributes: Menu ID (Primary Key), Menu Type (e.g., Lunch, Dinner), Store ID (Foreign Key)
-
Menu Item
- Attributes: Item ID (Primary Key), Item Name, Price, Menu ID (Foreign Key)
Relationships:
-
Manages Relationship
- One-to-One between Manager and Store Location. Each store location is managed by one manager, and each manager manages only one store location.
-
Has Relationship
- One-to-Many between Store Location and Menu. Each store location has one or more menus.
-
Includes Relationship
- One-to-Many between Menu and Menu Item. Each menu includes many menu items, and each menu item belongs to one menu.
E-R Diagram Representation:
- Store Location entity is connected to Manager with a one-to-one relationship labeled as "is managed by."
- Store Location is also connected to Menu with a one-to-many relationship labeled as "has."
- Menu is connected to Menu Item with a one-to-many relationship labeled as "includes."
- A rectangle labeled "Store Location" with lines connecting to a rectangle labeled "Manager," indicating the one-to-one relationship.
- A rectangle labeled "Menu" with lines connecting back to "Store Location," indicating the one-to-many relationship.
- And a rectangle labeled "Menu Item" connected to "Menu," also indicating a one-to-many relationship.
Each rectangle would have a list of its attributes inside. The primary keys would be underlined.
Step by step
Solved in 3 steps with 1 images