Database Design 3-3: Practice Activities: Speaking Erdish and Drawing Relationships
Database Design 3-3: Practice Activities: Speaking Erdish and Drawing Relationships
Database Design 3-3: Practice Activities: Speaking Erdish and Drawing Relationships
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?
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.
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.