Labsheet#2 - ERD
Labsheet#2 - ERD
Labsheet#2 - ERD
ENGINEERING
LEARNING OUTCOMES
Upon the completion of this lab session, students will have the ability to translate business rules
into ERD.
QUESTION:
1. MV Electric wishes to create a database with the following entities and attributes:
a. CUSTOMER, with attributes Customer_ID, Name, Address (Street, City, State,
Zip Code), Telephone.
b. LOCATION, with attributes Location_ID, Address (Street, City, State, Zip
Code), Type (values of Business or Residential).
c. RATE, with attributes RateClass, Rateperkwh.
After interviews with the owners, you have come up with the following business
rules:
CUSTOMER can have one or more locations.
Each LOCATION can have one or more rates, depending on the time of day.
Draw an ERD for this situation, and place minimum and maximum cardinalities on the
diagram.
2. Given the following business rules, identify the suitable attributes and create the
Crow’s Foot ERD. You are required to model all entity classes, relation classes,
cardinalities and (possibly) dependability of existence and weak entity classes.
Case 1: Business rules
a. A company operates many departments.
b. Each department employs one or more employees.
c. Each of the employees might or might not have one or more dependents.
d. Each employee might or might not have an employment history
Case 2: Business rules for Little League baseball program:
a. A City sponsor one or more teams, but each team is only sponsored by only one
city.
b. A team has many players, but each player plays for only one team.
c. It takes at least 10 players to make a team.
d. Each team plays each of the other teams twice, one at home and once as the
visiting team.