RelationalDBDesign RelationalDBDesign


ER Diagrams   «Prev  Next»

Lesson 1Intro to ER diagrams
ObjectiveIntroduce entity-relationship (ER) diagrams, the three relationship types, and participation (mandatory vs. optional).

Entity-Relationship Diagrams for Database Design

An entity-relationship diagram (ERD) is the primary blueprint for a relational database. It shows entities (things the business tracks), their attributes (descriptors), and the relationships among those entities. This lesson sets up the concepts you’ll use throughout the module to read, reason about, and draw ERDs correctly.

Learning objectives

After completing this lesson, you will be able to:
  1. Define an entity relationship and explain why ERDs matter.
  2. Describe the three relationship types: one-to-one, one-to-many, many-to-many.
  3. Identify relationship participation (mandatory vs. optional).
  4. Recognize common ERD notations (Chen, Crow’s Foot/IDEF1X) and how to read their symbols.

Core concepts at a glance

The three relationship types

Participation: mandatory vs. optional

Participation answers “Must this entity participate in this relationship?” Participation decisions influence NULL allowances, foreign-key constraints, and application rules.

Reading notation

ERDs can be drawn in several notations. Two you will see in this course:

Tip: Regardless of notation, always read a relationship by naming the entities, the verb phrase, the cardinality (1 or many), and whether participation is optional or mandatory on each side.

From ERD to tables

  1. Each entity → a table with a primary key (the entity identifier).
  2. Each 1:M relationship → a foreign key on the “many” side.
  3. Each M:N relationship → an associative table with foreign keys to both parents (and any attributes of the relationship itself, e.g., EnrollmentDate).
  4. Optional participation → a nullable foreign key (unless business rules require NOT NULL).
  5. Mandatory participation → a NOT NULL foreign key and/or additional constraints.

Common pitfalls to avoid

Up next: We define entity relationships formally and practice reading cardinality and participation on real ERD fragments.


SEMrush Software 1 SEMrush Banner 1