Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 6 marks ) ( Drawing an ERD ) A recipe indicates how to prepare a particular type of food. Each recipe has a recipe
marksDrawing an ERD
A recipe indicates how to prepare a particular type of food. Each recipe has a recipe name,
a list of or more ingredients with a quantity for each plus textual instructions.
Here is an example recipe:
Peanut Butter Oatmeal Cookies
Instructions:
Bring butter to room temperature. Preheat oven to Beat sugar, brown sugar and butter
until well mixed. Add eggs, vanilla, and baking soda. Mix well. Add peanut butter and mix. Stir
in oats. Cover cookie sheets with parchment paper. Place teaspoons of dough about inches
apart. Bake for minutes until lightly brown around the edges.
Draw an entity relationship diagram ERD that represents a database for storing such
recipes. Assume ingredients can be stored in your database even if they are not used in any
recipe. Each ingredient can be used in zero or more recipes. Each recipe includes a single
block of text for the instructions.
Use the style of diagram presented in class. Include in your diagram:
Entity, relationship, and attribute names.
Appropriate cardinalities on both ends of each relationship.
Define a primary key for each entity. Put the notation PK after each attribute that is
part of a primary key.
Use the notation FKFK etc. after each attribute that forms a foreign key.
Make sure the relationships and foreign key attributes are consistent with each other.
You can put the PK and FK information before or after the attribute names it doesn't
matter which
Use the space provided on the next page to draw your ERD.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started