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

www.oracle.

com/academy

Database Foundations
2-5 : Relationships
Practices
Exercise 1: Identify relationships from the ERD

Overview
In this practice, you identify the relationships from the ERD diagrams and write the ERDish sentences.

Tasks
1. Read the relationship. Which text corresponds to the diagram?

a. Each EMPLOYEE may be assigned to one or more DEPARTMENTs.


Each DEPARTMENT must be responsible for one or more EMPLOYEEs.

b. Each EMPLOYEE must be assigned to one and only one DEPARTMENT.


Each DEPARTMENT must be responsible for one or more EMPLOYEEs.

c. Each EMPLOYEE must be assigned to exactly one DEPARTMENT.


Each DEPARTMENT may be responsible for exactly one EMPLOYEE.

2. Read each relationship in the model below. For each relationship, write the ERD statement and your comments. Use your
knowledge of normal people and towns in your comments.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
2

Exercise 2: Analyze and Model Relationships

Overview
In this practice, you analyze and model the relationships for the following entities, which you created in the Academic Database
previously.

Tasks
1. Write the ERDish for each of the relationships in the Academic Database including relationship names, optionality and cardinality.
Draw the ERD including the relationships.

COURSE DEPARTMENT STUDENT


# ID # ID # ID
* Name * Name * First Name
* Head * Last Name
* Registration Year
* Email
* Number of Working Days
* Number of Days Off
FACULTY ACADEMIC SESSION o Eligibility for Exam
# ID # ID
* First Name * Name
* Last Name EXAM
* Email # ID
* Login Date * Type
* Login Time o Start Date
o Details PARENT INFORMATION
* Name
# ID
o Description
* Parent 1 First Name
* Parent 1 Last Name
o Parent 2 First Name
o Parent 2 Last Name

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

You might also like