5 Relationships

 

In this chapter

  • You establish relationships between entities.
  • You identify the cardinality of each relationship.
  • You decide whether to represent some entities as weak entities.

Overview

In this chapter, you will develop your entity-relationship (E-R) diagram for The Sci-Fi Collective’s online store by establishing relationships among entities you identified in chapter 4. By doing so, you will learn important database design concepts, such as cardinality and dependency.

Entity-relationship diagrams

Connect related entities

Cardinality

Direction and representation

One-to-one: A perfect match

One-to-many: A love triangle

Strong and weak entities