DBF161 Activity 1 - ERD
DBF161 Activity 1 - ERD
Create an Entity Relationship Diagram (ERD) for each of the scenarios below. Add some suitable
attributes.
1. An EMPLOYEE manages one STORE and each STORE is managed by one EMPLOYEE.
2. A customer can make many payments, but each payment is made by only one customer.
5. A hospital patient receives medications that have been ordered by a particular doctor. Because
the patient often receives several medications per day, there is a 1:M relationship between
PATIENT and ORDER. Similarly, each order can include several medications, creating a 1:M
relationship between ORDER and MEDICATION.
7. A manufacturing company produces products. Product information stored is product name, id,
quantity on hand. These products are made up of many components. Each component can be
supplied by one or more suppliers. Component information kept is component id, name,
description, suppliers who supply them, and which products they are used in.
Create an ERD to show how you would track this information.
Show entity names, primary keys, attributes for each entity, relationships between the entities
and cardinality.
Resolve any many-to-many relationships.
Assumptions:
A supplier can exist without providing components.
A component does not have to be associated with a supplier.
A component does not have to be associated with product. Not all components are used in
products.
A product cannot exist without components.