chapter five

5 Relationships

 

In this chapter

  • You establish relationships between entities.
  • You identify the cardinality of each relationship.
  • You make decisions on 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 online store by establishing relationships among entities you identified in Chapter 4. By doing so, you will learn about important concepts in database design, such as cardinality and dependency.

Entity-relationship models

Connecting related entities

Cardinality

Direction and representation

One-to-one: A perfect match

One-to-many: A love triangle

Many to many: The more the merrier

Strong and weak entities

Identify strong and weak entities in your database

Summary