ER Model
The entity-relationship model is a way to design a database on paper before building it: you draw the things you store, their properties and how they relate. Interviewers ask about it because a good answer needs the vocabulary (entity, relationship, cardinality, weak entity) and the rules for turning a diagram into tables. After this section you can read an ER diagram, state each cardinality (how many on each side) and participation (must every entity take part), explain a weak entity set with an example, and convert a design into relational tables with the right keys.
Topics in this section
- Entities and attributes
- Types of attributes
- Relationships, degree and roles
- Cardinality and participation
- Weak entity sets
- Keys of relationship sets
- From an ER diagram to tables