Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Homework 1 Due date 4/1 23:59pm

1. Give an example of each of the three types of relationships. (10%)

2. Suppose that you have the Crow’s Foot ERD shown in the figure below. (15%)

How would you convert this model into an ERD that displays only 1:M
relationships? (Write down the revised business rules and make sure that you
draw the revised ERD.)

3. Create a Crow’s Foot ERD to include the following business rules for the
ProdCo company: (15%)
Each sales representative writes many invoices.
Each invoice is written by one sales representative.
Each sales representative is assigned to one department.
Each department has many sales representatives.
Each customer can generate many invoices.
Each invoice is generated by one customer.
4. Use the database shown in Figure P3.1 to answer Problems. (36%)
FIGURE P3.1 The Ch03_StoreCo Database Tables

a. For each table, identify the primary key and the foreign key(s). If a table
does not have a foreign key, write None in the space provided.

b. Do the tables exhibit entity integrity? Answer yes or no and then explain
your answer.

c. Do the tables exhibit referential integrity? Answer yes or no and then explain
your answer. Write NA (Not Applicable) if the table does not have a foreign key.
d. Describe the type(s) of relationship(s) between EMPLOYEE and STORE.
(Hint: Each store employs many employees, one of whom manages the store.)
e. Draw the ERD to show the relationships among EMPLOYEE, STORE, and
REGION.

f. Create the relational diagram to show the relationships among EMPLOYEE,


STORE, and REGION.

5. The local city youth league needs a database system to help track children that
sign up to play soccer. Data needs to be kept on each team and the children that
will be playing on each team and their parents. Also, data needs to be kept on
the coaches for each team. Draw the complete ERD in Crow’s Foot notation
described below. (Hint: should label which attribute is PK) (24%)

Entities required: Team, Player, Coach, and Parent.

Attributes required:

Team: Team ID number, Team name, and Team colors.

Player: Player ID number, Player first name, Player last name,


and Player age.

Coach: Coach ID number, Coach first name, Coach last name,


and Coach home phone number.

Parent: Parent ID number, Parent last name, Parent first name,


Home phone number, and Home Address (Street, City, State, and
ZIP Code).

The following relationships must be defined:

 Team is related to Player.

 Team is related to Coach.

 Player is related to Parent.

Connectivities and participations are defined as follows:

 A Team may or may not have a Player.


 A Player must have a Team.
 A Team may have many Players.

 A Player has only one Team.

 A Team may or may not have a Coach.

 A Coach must have a Team.

 A Team may have many Coaches.

 A Coach has only one Team.

 A Player must have a Parent.

 A Parent must have a Player.

 A Player may have many Parents.

 A Parent may have many Players.

You might also like