The E/R Model




CS157a

Chris Pollett

Oct 14, 2019

Outline

Introduction

Entity Sets

Attributes

Relationships

E/R Diagrams

Movies ER Diagram

Quiz

Which of the following is true?

  1. Any table in BCNF will have the dependency preservation property.
  2. The 3NF synthesis algorithm won't produce relations in 2NF.
  3. Any FD is an MVD.

Instances of an E/R Diagram

Multiplicity of Binary E/R Relationships

Multiway Relationships

Roles in Relationships

Attributes on Relationships

Converting Multiway Relationships to Binary

Subclasses in the E/R Model

Example isa relationship

Design Principles for E/R Diagrams

Faithfulness

Avoiding Redundancy

Simplicity Counts

Choosing the Right Relationship

Picking the Right Kind of Element

Replacing an Entity Set with Attributes