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.

5.1 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.

5.2 Entity-relationship models

5.3 Connecting related entities

5.4 Cardinality

5.4.1 Direction and representation

5.4.2 One-to-one: A perfect match

5.4.3 One-to-many: A love triangle

5.4.4 Many to many: The more the merrier

5.5 Strong and weak entities

5.5.1 Identify strong and weak entities in your database

5.6 Summary