| Lesson 2 | Entities and their Attributes |
| Objective | Describe how entities map to relational tables. |
Step 1 - Conceptual modeling: Convert the business objects and policies gathered during Requirements Analysis into entities (things to store data about) and their attributes (facts about those things). Capture relationships, identifiers, and cardinalities in an ER diagram (ERD). The ERD is technology-neutral and focuses on structure, not implementation.
CHECK, UNIQUE, NOT NULL).UNIQUE constraints.NULL vs. NOT NULL and may influence additional constraints.CHECK constraints, and referential actions that reflect the business rules captured earlier.Note: Normalization typically follows during logical design to reduce redundancy and anomalies while preserving business meaning.
An entity is a tangible or intangible business object (e.g., person, item, reservation). Avoid modeling aggregates (e.g., “inventory”, “medical history”) as single entities—these are collections of related entities.
Step 2 - Logical/physical realization: Entities become tables; attributes become columns; identifiers become keys; relationships become foreign keys and constraints. Special entities (associative/bridge) represent M:N relationships and carry their own attributes.