Skip to content
recaplica

    One moment: security check

    Cloudflare wants to make sure you're not a robot. Tick the box below and your search will continue on its own.

    IT
    recaplica ER Diagram (Entity-Relationship Diagram): What It Is and How to Build One
    © 2026 Recaplica · recaplica.com — All rights reserved
    Home › Technology

    ER Diagram (Entity-Relationship Diagram): What It Is and How to Build One

    By Recaplica Newsroom · Updated on September 28, 2026

    What to print

    Page numbers appear when printing with default margins.

    Slides

    Choose a cut

    Flash10 slidesThe essential thread, to present in classFull15 slidesEvery chapter and the deeper detail

    Both come with speaker notes.

    Telegram channel
    recaplica Clear in 30 seconds, yours in 10 minutes.
    In 30 seconds Key points Deep dive Slides Myths Mind map Quiz Flashcards FAQ

    In 30 seconds quick read

    An entity-relationship diagram, or ER diagram, is the map database designers draw before building a database: it shows which objects need tracking (entities), what information describes them (attributes) and how they connect to each other (relationships). It's a conceptual design step, not the finished database schema — the translation into real tables comes later. The two most common notations are Chen, which uses rectangles and ovals, and Crow's Foot, which uses lines ending in circles, bars and crow's feet to show how many instances connect. A relationship can be one-to-one, one-to-many or many-to-many, and each type has its own way of being drawn.

    Key Points

    • An ER diagram maps out entities, attributes and relationships before a single database table gets built.
    • It describes data structure during a design stage that comes before the physical schema of a relational database.
    • Cardinality (one-to-one, one-to-many, many-to-many) says how many instances of one entity connect to how many instances of another.
    • Chen notation uses rectangles for entities, ovals for attributes and diamonds for relationships.
    • Crow's Foot notation uses a circle, a bar and a crow's foot to mark zero, one and many.
    • Converting a many-to-many relationship into relational database tables takes an extra step.

    Deep Dive

    An entity-relationship diagram (ER diagram) is how database designers plan the structure of a database before they build it for real. GeeksforGeeks describes the ER model as “a conceptual model for designing a database”: a layer of reasoning upstream of the tables, where you decide what to track and how it connects, not yet how it’s physically stored.

    An ER diagram isn’t an algorithm that solves a problem step by step, but the reasoning behind it is similar: it breaks a complex domain down — thought through in the abstract, the way an algorithm does — into smaller, connected pieces. Sites built in JavaScript or PHP, behind the scenes, also sit on a database that was planned upstream with a diagram of exactly this kind. For a broader look at what a database is and the types that exist, the Recap on database management systems is the place to start; this Recap zooms in on the technique for designing one before writing it.

    The Three Basic Building Blocks

    An ER diagram is built from three elements. Visual Paradigm defines an entity as “a definable thing or concept within a system” — a person or role (for example a Student), an object (an Invoice), a concept (a Profile) or an event (a Transaction). GeeksforGeeks gives a concrete example: Student, Course or Company are entities.

    An attribute, per Visual Paradigm, is “a property or characteristic” of the entity that holds it: GeeksforGeeks points to StudentID, CourseName or EmployeeEmail as examples. And a relationship, finally, is the connection that shows two entities are associated with each other — the simplest example, again from GeeksforGeeks, is “Student enrolls in a Course.”

    Cardinality: How Many Instances Connect

    Defining entities, attributes and relationships isn’t enough: you also need to say how many instances of one entity connect to how many instances of the other. That’s cardinality, which Visual Paradigm describes as the number of possible occurrences of one entity associated with the number of occurrences of another.

    GeeksforGeeks offers three minimal examples, one for each cardinality type:

    TypeExampleMeaning
    One-to-one (1:1)Person and passportOne person holds one passport, and one passport belongs to one person
    One-to-many (1:N)Department and doctorsA department can have several doctors, but each doctor belongs to one department
    Many-to-many (N:M)Employees and projectsAn employee works on several projects, and a project has several employees

    The database design textbook by Watt and Eng adds a practical note: a one-to-many relationship “should be the norm in any relational database design,” meaning it’s the most common type in relational databases. The same source also notes that a many-to-many relationship “cannot be implemented as such in the relational model”: it doesn’t translate directly into a single table, and needs an extra step during conversion into the actual database.

    The Two Notations: Chen and Crow’s Foot

    Standard symbols exist for drawing entities, attributes, relationships and cardinality, collected into two different notations.

    Chen notation, according to GeeksforGeeks, uses a distinct geometric shape for each element:

    SymbolMeaning
    RectangleEntity
    Double rectangleWeak entity
    OvalAttribute
    Underlined ovalKey attribute
    Double ovalMultivalued attribute
    Dashed ovalDerived attribute
    DiamondRelationship

    Crow’s Foot notation, explained by freeCodeCamp, represents cardinality instead with marks at the ends of the lines that connect entities:

    SymbolMeaning
    CircleZero
    Single barOne
    Crow’s foot (three lines)Many
    Circle + crow’s footZero or many
    Bar + crow’s footOne or many
    Two barsOne and only one

    Visual Paradigm confirms the same idea from another angle: “In an ER diagram, cardinality is represented as a crow’s foot at the connector’s ends.” freeCodeCamp also gives two minimal examples: in a Teacher-Course relationship, a teacher teaches “one and only one” course, while a course is taught by “one or many” teachers; in a Customer-Pizza relationship, a customer orders “zero or many” pizzas, and a pizza is ordered by “zero or many” customers.

    How to Build One: A Step-by-Step Example

    Worked example: imagine sketching out part of a database for a university.

    First step: identify the entities involved. Here you need a Student, a Course and an Instructor.

    Second step: list the attributes of each entity. The Student has a StudentID, the Course has a CourseName.

    Third step: identify the relationships between the entities. A Student enrolls in a Course. An Instructor teaches a Course — for example, as the same textbook puts it, Prof. Ba teaches the Database Systems course.

    Fourth step: assign cardinality to each relationship, choosing whether to draw it with Chen or Crow’s Foot. A relationship can be one-to-one, one-to-many or many-to-many, depending on what actually happens between the two entities.

    Fifth step: draw it. With Chen notation, a rectangle for each entity, an oval for each attribute connected to its rectangle, a diamond for each relationship. With Crow’s Foot, entities stay inside a box with their attributes listed inside, and it’s the lines connecting them — ending in a circle, a bar or a crow’s foot — that tell the cardinality story.

    A diagram like this, with its entities, attributes and cardinality-marked relationships, is the starting point from which the actual database tables get written: for the general concepts of what a database is and how it works, the Recap on database management systems remains the place to go.

    Slide deck

    Slides ready to download and make your own in PowerPoint or Google Slides, with speaker notes. Pick the Flash cut or the Full one.

    Slide 1 of the presentation on ER Diagram (Entity-Relationship Diagram): ER DiagramSlide 2 of the presentation on ER Diagram (Entity-Relationship Diagram): How do you plan a database before writing a single table?Slide 3 of the presentation on ER Diagram (Entity-Relationship Diagram): What's aheadSlide 4 of the presentation on ER Diagram (Entity-Relationship Diagram): Chapter 01: The three basic building blocksSlide 5 of the presentation on ER Diagram (Entity-Relationship Diagram): The building blocks of the ER model: Entity, Attribute, RelationshipSlide 6 of the presentation on ER Diagram (Entity-Relationship Diagram): Chapter 02: How many instances connectSlide 7 of the presentation on ER Diagram (Entity-Relationship Diagram): Passport · Department · ProjectsSlide 8 of the presentation on ER Diagram (Entity-Relationship Diagram): Chapter 03: Chen or Crow's FootSlide 9 of the presentation on ER Diagram (Entity-Relationship Diagram): Two notations, same conceptsSlide 10 of the presentation on ER Diagram (Entity-Relationship Diagram): The symbols of Crow's Foot notationSlide 11 of the presentation on ER Diagram (Entity-Relationship Diagram): Chapter 04: Building the diagramSlide 12 of the presentation on ER Diagram (Entity-Relationship Diagram): How to build one, in three passesSlide 13 of the presentation on ER Diagram (Entity-Relationship Diagram): An ER diagram is not a relational database schema.Slide 14 of the presentation on ER Diagram (Entity-Relationship Diagram): In Crow's Foot notation, what does the crow's foot mean?Slide 15 of the presentation on ER Diagram (Entity-Relationship Diagram): What's next
    Flash10 slidesThe essential thread, to present in classFull15 slidesEvery chapter and the deeper detail

    Common myths

    • ✗ Myth An entity-relationship diagram is the same thing as a relational database schema.

      ✓ Reality An ER model is a conceptual model, built to plan the structure of data before any table gets written; the relational schema comes afterward, as a translation of that model into a format the database can actually use.

    • ✗ Myth A many-to-many relationship goes into a table just like any other relationship.

      ✓ Reality The relational model can't translate it directly: a many-to-many relationship, like the one between employees and projects, needs an extra step during conversion.

    Mind map

    Drag the background to move around and the nodes to reposition them; use − and + to collapse and expand branches.

    Customize
    Mind map: ER Diagram (Entity-Relationship Diagram): What It Is and How to Build One
    • ER Diagram
      • What it is
        • Conceptual model describes data structure before the tables
        • Upstream of the database comes before the actual relational schema
      • The three elements
        • Entities the object or concept being tracked
        • Attributes the information that describes the entity
        • Relationships the connections between two entities
      • Cardinality
        • One-to-one person and passport
        • One-to-many department and doctors
        • Many-to-many employees and projects
      • Chen notation
        • Rectangle entity
        • Oval attribute
        • Diamond relationship
      • Crow's Foot notation
        • Circle zero
        • Bar one
        • Crow's foot many
      • How to build one
        • Entities and attributes
        • Relationships
        • Cardinality and symbols

    Quiz: test yourself

    Answer the questions to check what you have learned: you get instant feedback and a short explanation.

    Grade 0/10 0/5
    1 What is an entity-relationship diagram, first and foremost?

    The ER model is a conceptual design tool: it comes before the actual tables, not instead of them.

    2 What are the three basic building blocks of an ER diagram?

    An entity is the thing being tracked, an attribute describes it, and a relationship connects two entities.

    3 A many-to-many relationship translates directly into a single table in the relational model.

    False: the relational model can't translate it as-is — it needs an extra conversion step.

    4 In Chen notation, which symbol marks a key attribute?

    An underlined oval marks the key attribute; a double oval is for multivalued attributes, a diamond for a relationship, and a double rectangle for a weak entity.

    5 In Crow's Foot notation, what does the crow's foot symbol (three fanned-out lines) mean?

    The crow's foot marks the 'many' cardinality: it signals that multiple instances of one entity can connect to the other.

    Answers: 1-B · 2-B · 3-B · 4-A · 5-C

    Flashcards

    Tap the card to flip it and check whether you remember the answer, then move to the next one.

    1 / 7

    Explain it in your own words

    The ultimate test: if you can explain it in simple words, you've truly understood it. Write your explanation, then compare it with the Recap.

    Your explanation is saved only on this device.

    An entity-relationship diagram, or ER diagram, is the map database designers draw before building a database: it shows which objects need tracking (entities), what information describes them (attributes) and how they connect to each other (relationships). It's a conceptual design step, not the finished database schema — the translation into real tables comes later. The two most common notations are Chen, which uses rectangles and ovals, and Crow's Foot, which uses lines ending in circles, bars and crow's feet to show how many instances connect. A relationship can be one-to-one, one-to-many or many-to-many, and each type has its own way of being drawn.

    Frequently asked questions

    What's the difference between an ER diagram and a relational database schema?

    An ER diagram works on the structure of data before any tables exist. The relational schema grows out of that model, with the adjustments it needs — for many-to-many relationships, for instance — to become something the database can actually use.

    What's the difference between Chen notation and Crow's Foot notation?

    They're two different ways of drawing the same concepts. Chen uses rectangles for entities, ovals for attributes and diamonds for relationships. Crow's Foot shows cardinality with lines ending in a circle (zero), a bar (one) or a crow's foot (many).

    What's an example of an entity-relationship diagram?

    A typical case is a university database with the entities Student, Course and Instructor: the Student has a StudentID, the Course has a CourseName, and a relationship connects the Student to the Course they enroll in, or the Instructor to the Course they teach.

    How do you draw a many-to-many relationship in an ER diagram?

    It's drawn as an ordinary relationship, for example between Employees and Projects (an employee works on several projects, a project has several employees), but converting it into a relational database takes more than one table: it needs an extra step to handle it.

    Sources

    • Visual Paradigm — What is Entity Relationship Diagram (ERD)?
    • freeCodeCamp — Crow's Foot Notation: Relationship Symbols And How to Read Diagrams
    • GeeksforGeeks — Introduction of ER Model
    • Database Design – 2nd Edition (Watt & Eng) — The Entity Relationship Data Model

    Every Recap goes through an independent review before publication.

    Every evening, the day's new Recaps on our Telegram channel. Join the channel →

    Keep learning

    • Technology DBMS: What It Is, the Main Types, and Real Examples A DBMS, short for database management system, is the software that lets people create, query and update the data in a database without having to know how that data is physically stored. Compared with spreadsheets or scattered files, it keeps data in one place and more consistent, cutting down on duplication and security gaps. The most common type is the relational model, which organizes data into linked tables and is queried with SQL. Nonrelational, or NoSQL, systems handle more flexible data, and two older models, hierarchical and network, sit alongside an object-oriented model. Read the Recap →
    • Technology Relational Database: How Tables, Rows, and Keys Organize Data A relational database stores data in tables, each one dedicated to a single subject, such as customers or orders. Every row in a table is a record, and every column is a field holding the same kind of value across all rows. A primary key identifies each row uniquely, while a foreign key connects it to a row in another table, so information stays consistent without being copied everywhere. Tables combine through three kinds of relationships — one-to-one, one-to-many, many-to-many — and are queried with SQL, the standard language of these systems. Read the Recap →
    • Technology SQL vs NoSQL: How Relational and Non-Relational Databases Differ A relational database stores data in tables with a fixed schema, set before a single row is ever written. A non-relational database, or NoSQL, uses flexible schemas built around one specific data model instead: documents as in MongoDB, key-value pairs as in Redis, partitioned wide columns as in Apache Cassandra, or nodes linked by relationships as in Neo4j. NoSQL databases emerged in the late 2000s, as storage got cheaper and systems increasingly needed to run across many machines at once. Choosing between the two isn't about which one is generally faster or more scalable — it depends on the shape of the data and the job at hand, since both can grow, just in different directions, and the CAP theorem explains the trade-off every distributed system faces the moment its network connections break. Read the Recap →

    recaplica

    Clear in 30 seconds, yours in 10 minutes.

    Recaps Mind maps Request a Recap Telegram channel Mind map maker Our method About Privacy & cookies Legal notes & terms of use

    © 2026 Recaplica · A project by Curi S.r.l. — VAT IT05472000750

    Statistics, only if you say so

    To learn which Recaps help most we would use Google Analytics, with aggregate, anonymous data. It starts only with your OK, and you can change your mind anytime. Privacy policy