TEC-DATA86-02 · Lesson 2 · 14 clock hours · demo
Entity-Relationship Modeling
Objective. Students will create crow's-foot ERDs that correctly represent entities, attributes, and binary relationships (one-to-one, one-to-many, many-to-many) from a written business narrative.
⚠ Pending professional review
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
What Is an Entity-Relationship Model?
An entity-relationship (ER) model is a blueprint of the data a business needs to store and how different pieces of that data connect to one another. Before a single table is created in PostgreSQL, Oracle, or SQL Server, a good ER model prevents costly redesigns later. The diagram you draw — the ERD — communicates that blueprint to developers, stakeholders, and auditors in a common visual language.
ER modeling was introduced by Peter Chen in 1976 and remains the standard starting point for relational database design. Most professional DBA certification exams, including the Oracle DBA CA and the DAMA CDMP Associate, expect you to read and produce ERDs fluently.
Core Building Blocks
Entities are the things the business cares about — people, objects, events, or concepts that need their own stored data. In a library system, Book, Member, and Loan are entities. Each entity becomes a table in the finished database.
Attributes are the facts stored about an entity. The Book entity might have attributes such as ISBN, title, and publication year. Every entity must have a primary key — one attribute (or a minimal set of attributes) whose value uniquely identifies each row. On an ERD, the primary key attribute is underlined or marked with a key symbol.
Relationships describe how two entities are associated. A relationship is always named with a verb phrase that reads naturally in both directions: a Member borrows a Loan; a Loan is borrowed by a Member.
Crow's-Foot Notation
Crow's-foot notation uses line-end symbols to express two things about every side of a relationship: participation (must the entity appear at least once?) and cardinality (what is the maximum number of times it can appear?).
| Symbol at line end | Meaning |
|---|---|
| Single vertical bar ( \| ) | Exactly one (minimum and maximum = 1) |
| Double vertical bar ( \|\| ) | Exactly one on the mandatory side |
| Circle ( ○ ) | Zero (participation is optional) |
| Crow's foot ( ᗕ ) | Many (maximum is unbounded) |
The two symbols closest to an entity together state that entity's role. Read the pair closest to each entity to determine the rule:
- One-to-many (1:M) — One Member may have zero-or-many Loans; each Loan belongs to exactly one Member.
- One-to-one (1:1) — Each Employee is assigned exactly one Parking Spot; each Parking Spot is assigned to at most one Employee.
- Many-to-many (M:N) — Many Students enroll in many Courses. In a relational database, a many-to-many is resolved by adding an associative (junction) entity (e.g., Enrollment) that holds the primary keys of both sides as a composite or surrogate key.
Naming Conventions
Professional ERDs follow consistent conventions that translate cleanly into database objects:
- Entity names: singular noun, PascalCase (e.g., CustomerOrder).
- Attribute names: lowercase with underscores (e.g., order_date).
- Relationship labels: active verb phrase on the line.
- Primary keys: marked explicitly; foreign keys implied by relationships.
Consistent naming is tested on the DAMA CDMP Associate exam under the Data Modeling and Design knowledge area.
Step-by-Step Modeling Process
1. Read the narrative carefully — underline every noun (candidate entity or attribute) and every verb (candidate relationship).
2. Distinguish entities from attributes — if a noun needs more than one fact stored about it, promote it to an entity.
3. List primary keys — confirm each entity has a unique identifier.
4. Draw entities as rectangles in draw.io and list attributes inside.
5. Draw relationship lines and apply crow's-foot symbols at each end.
6. Resolve M:N relationships by inserting associative entities.
7. Validate — read each relationship aloud in both directions and confirm it matches the business narrative.
Working in draw.io Safely
Draw.io is a browser-based tool and poses no physical hazards. However, follow good digital safety habits:
- Save frequently — use File → Save As and keep a local copy; browser sessions can time out.
- Version control — when revising after peer critique, save the original file under a new name (e.g., retail_erd_v1.xml, retail_erd_v2.xml) so you can recover earlier work.
- File naming — avoid special characters in filenames to ensure portability across operating systems.
- Data privacy — if a real business narrative contains customer or employee names, treat that document according to your program's data-handling policy and do not share it outside the classroom network.
These habits mirror real DBA work, where version control of schema design artifacts is a professional expectation and mishandling sensitive metadata can create compliance issues under frameworks such as HIPAA or PCI-DSS.
Common Mistakes to Catch in Peer Review
- Missing primary key on one or more entities.
- Backward cardinality — the crow's foot placed on the wrong end of the line.
- Unresolved M:N — two entities connected directly with many-to-many without a junction entity.
- Attribute promoted incorrectly — storing a phone number as a single-valued attribute when the business allows multiple phone numbers per customer (should become a separate Phone entity).
- Orphan entities — an entity with no relationship to any other entity in the diagram.
Using the provided checklist during the swap session trains the systematic review skill that senior DBAs use during schema design walkthroughs.
Key terms8
EntityA distinct person, place, object, event, or concept about which a business stores data; represented as a rectangle in an ERD and maps to a table in the relational database.
AttributeA property or fact describing an entity; maps to a column in the resulting table. The primary-key attribute uniquely identifies each instance of the entity.
Primary KeyAn attribute or minimal set of attributes whose value is unique and non-null for every row in a table, used to identify each entity instance.
CardinalityThe maximum number of times one entity instance can be associated with instances of another entity in a relationship (one or many).
ParticipationWhether membership in a relationship is mandatory (at least one occurrence required) or optional (zero occurrences permitted); shown by the inner symbol in crow's-foot notation.
Crow's-Foot NotationA widely used ERD notation that expresses cardinality and participation with line-end symbols: a single bar for 'one,' a three-pronged crow's foot for 'many,' a circle for 'zero,' making diagrams easy to read at a glance.
Associative EntityA junction entity introduced to resolve a many-to-many relationship; it holds the primary keys of both related entities and may carry additional attributes of the relationship itself.
RelationshipA named association between two entities, described by a verb phrase; in crow's-foot notation it is drawn as a line connecting two entity rectangles with cardinality and participation symbols at each end.
In class: Instructor live-demo: model a library system (books, members, loans) step-by-step in draw.io using crow's-foot notation while students replicate each step on their own screens. · Pair exercise: each pair receives a one-page business narrative for a small retail store and must identify all entities, their attributes, and all relationships, then draw a complete ERD in draw.io and walk the class through one relationship. · Critique session: pairs swap ERDs, identify missing entities or cardinality errors using a provided checklist, and give written feedback that the original team must respond to in a revision.
Materials: draw.io (free, browser-based), printed business narratives, crow's-foot notation reference card, checklist template, projector
Check: Instructor evaluates final revised ERD against the business narrative using a 10-point rubric (entities complete, attributes complete, cardinalities correct, naming conventions followed). Pass: 7/10.
Practice check8
Answer each question, then check it. Nothing is recorded; this is your own practice.
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.