Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Database Design 3-3: Practice Activities: Speaking Erdish and Drawing Relationships

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

academy.oracle.

com

Database Design
3-3: Speaking ERDish and Drawing Relationships
Practice Activities
Objectives
• State relationships between entities in precise words (ERDish)
• Draw and label relationships correctly on an ERD

Vocabulary
Identify the vocabulary word for each definition below.
ERDish The language or statements used to describe
relationships between entities in an entity-relationship
diagram.

Try It / Solve It
1. The goal of this practice is to read a 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. In the diagram for #1 identify the symbols for cardinality.


Crow foot on Employee side and Single toe on Department side.

Copyright © 2019, 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.

3. In the diagram for #1 identify the symbols for optionality.

Solid line on Employee side and solid line on Department side.

4. Read the relationship in the diagram below. Write the ERD statement for the relationship.

Each camera can be used to take one or multiple photos and every photograph must
be taken with one camera.

5. Read each relationship in the model below. For each relationship, write the ERD state
ment and your comments. Use your knowledge of normal people and towns in your com
ments.

1. ERD statement: Each person can be born in one of many towns and each town can
only a birthplace to one person. Correct statement: the line should be fully dotted
because people can also be born in cities or countryside.
2. ERD statement: Each person must be living in one and only one town. Each town
may be the hometown of one or more people. What is wrong: people can have more
than one house and people can live in the city or countryside too.
3. ERD statement: Each person may be a visitor of one or more towns. Each town must
be visited by one or more people. Correct statement: original statement is correct in
my opinion.
4. ERD statement: Each person may be mayor of one and only one town. Each town
may be governed by one and only one person. Correct statement: original statement
is correct in my opinion.
Copyright © 2019, 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