Consider the following scenario•A company provides catering services for clients who need special-occasion, celebratory dinners. For each dinner, a number of dishes are to be offered. The dinner will be held at a venue. The company will provide staff to serve meals at the venue.•The company needs a database to store data related to this business activitya. Identify and list the entitiesb. Identify pairs of entities where a direct relationship existc.-For each pair of relationship draw the entity relationship diagram justifying the choice of cardinalities
Question
Consider the following scenario•A company provides catering services for clients who need special-occasion, celebratory dinners. For each dinner, a number of dishes are to be offered. The dinner will be held at a venue. The company will provide staff to serve meals at the venue.•The company needs a database to store data related to this business activitya. Identify and list the entitiesb. Identify pairs of entities where a direct relationship existc.-For each pair of relationship draw the entity relationship diagram justifying the choice of cardinalities
Solution
a. Entities:
- Company
- Clients
- Special-occasion dinners
- Dishes
- Venue
- Staff
b. Pairs of entities where a direct relationship exists:
- Company and Clients (Company provides services to Clients)
- Company and Staff (Company employs Staff)
- Clients and Special-occasion dinners (Clients need Special-occasion dinners)
- Special-occasion dinners and Dishes (Dinners consist of Dishes)
- Special-occasion dinners and Venue (Dinners are held at a Venue)
- Staff and Special-occasion dinners (Staff serve at Dinners)
c. Entity Relationship Diagram:
Unfortunately, I can't draw diagrams here, but I can describe them:
-
Company and Clients: One-to-Many relationship. One Company can have many Clients, but each Client is associated with one Company.
-
Company and Staff: One-to-Many relationship. One Company can have many Staff members, but each Staff member is associated with one Company.
-
Clients and Special-occasion dinners: One-to-Many relationship. One Client can have many Dinners, but each Dinner is associated with one Client.
-
Special-occasion dinners and Dishes: One-to-Many relationship. One Dinner can have many Dishes, but each Dish is associated with one Dinner.
-
Special-occasion dinners and Venue: One-to-One relationship. Each Dinner is held at one Venue, and each Venue can host one Dinner at a time.
-
Staff and Special-occasion dinners: Many-to-Many relationship. Each Staff member can serve at many Dinners, and each Dinner can be served by many Staff members.
Similar Questions
Here we are going to design an Entity Relationship (ER) model for a college database.Say we have the following statements.1. A college contains many departments 2. Each department can offer any number of courses 3. Many instructors can work in a department 4. An instructor can work only in one department 5. For each department there is a Head 6. An instructor can be head of only one department 7. Each instructor can take any number of courses 8. A course can be taken by only one instructor9. A student can enroll for any number of courses 10. Each course can have any number of students From the statements given, the entities are
The entity relationship set is represented in an ER diagram as _______________. Select the most suitable answer to fill in the blank.Double diamondsUndivided rectanglesDashed linesA DiamondA Round / Circle
Consider the following relationship diagram and find which type of relationship it represents?
state the relationships for all the entities
The number of entities to which another entity can be associated via a relationship set is expressed as :
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.