Finish E/R, E/R Relation Mapping, Other High Level Models




CS157a

Chris Pollett

Oct 22, 2018

Outline

Introduction

Weak Entity Sets

Example Weak Entity Set Example Weak Entity Set from Multiway relation

Conditions for a Weak Entity Set to Exist

Quiz

Which of the following is true?

  1. Multiway relationships in E/R Diagrams can be equivalently expressed using binary relationships and extra entity sets.
  2. Isa relationships are use to express one-one relationships in E/R Diagrams.
  3. Referential integrity constraints in E/R Diagrams are expressed by putting an underline under an attribute's name.

E/R To Relational Mapping

Step 1 - Mapping Entity Sets

Step 2 - Mapping Weak Entity Sets

Mapping Weak Entity Sets

Step 3 - Mapping One-One relationships

Step 4 - Mapping Many-One relationships

Mapping Many One Relationships

Step 5 - Mapping Many-many relationships

Mapping Many Many Relationships

Step 6 - Mapping Multiway relationships

Step 7 - Mapping Isa Relationships

Unified Modeling Language

UML Classes

Notation for UML Classes