The E/R Model




CS157a

Chris Pollett

Oct 15, 2018

Outline

Introduction

Entity Sets

Attributes

Relationships

E/R Diagrams

Movies ER Diagram

Quiz

Which of the following is true?

  1. Our BCNF decomposition algorithm was dependency preserving.
  2. Our algorithm for converting into 3NF took existing tables and split them in two to restore the 3NF property.
  3. If for all relations in a schema, if one has a nontrivial MVD on a given relation, the left hand side attributes of the MVD form a superkey, then the schema will be in 4NF.

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