# Entity-relationship diagrams: identify entities, keys and cardinality An entity-relationship diagram (ERD) represents the data concepts in a domain and the relationships between them. - Canonical: https://satracking.net/guides/entity-relationship-diagrams-entities-keys-cardinality/ - Language: en - Category: measurement-plans - Level: intermediate - Published: 2026-11-14 - Updated: 2026-11-14 --- ## Purpose of an entity-relationship diagram An entity-relationship diagram (ERD) represents the data concepts in a domain and the relationships between them. The supplied database-design lecture places ERDs within conceptual database design: they help translate data requirements into a conceptual schema before implementation decisions are made. An ERD is not yet a physical database schema. Its purpose is to make the meaning and structure of information discussable and reviewable. ## 1. Identify entities from the domain An entity represents a distinguishable thing about which the organization needs to retain information. Start from business requirements and identify concepts such as Customer, Account, Order or Service. Do not create entities for every noun: each candidate must represent a meaningful set of instances with relevant attributes or relationships. ## 2. Define attributes and identifiers Attributes describe properties of an entity. Identify a key that distinguishes one instance from another. A candidate key should be stable and unique within the intended scope. Avoid using a descriptive attribute as a key merely because it appears unique in a small sample. Separate mandatory attributes from optional ones where the notation supports it. Confirm definitions with domain stakeholders. ## 3. Model relationships and cardinality Relationships express how entities are associated. Cardinality describes how many instances may participate, for example one customer may be associated with multiple orders. Participation constraints clarify whether the relationship is optional or required. State relationship rules in business language before drawing them. “An order belongs to one customer” is more reviewable than an unexplained line between two boxes. ## 4. Resolve many-to-many relationships A many-to-many relationship may need an associative entity when the logical relational design is developed. The associative concept can also carry attributes about the relationship itself, such as quantity or effective date. Do not resolve relationships mechanically before understanding the business meaning. ## 5. Validate the model Walk through realistic examples with users. Check whether each entity, relationship, key and cardinality represents an actual rule. Review edge cases such as records created before a relationship exists, historical associations and entities that may have no related records. ## Review checklist - Are entities meaningful domain concepts? - Are attributes defined unambiguously? - Are identifiers stable and unique? - Are relationship names understandable? - Do cardinality and optionality match business rules? - Are many-to-many relationships represented intentionally? ## Common mistakes Confusing entities with screens, choosing unstable natural keys, omitting optionality, assuming every relationship is one-to-many and drawing tables before validating the domain all weaken an ERD. ## Source basis Based on the supplied *Entity-Relationship Diagrams* lecture, which situates ER diagrams in conceptual design and database requirements analysis. ## Official references - Entity-Relationship Diagrams — supplied lecture material — https://www.mysql.com/products/workbench/ (verified 2026-11-14)