5 questions to test your understanding
A junior developer proposes storing which courses a student is enrolled in as a comma-separated list of course IDs in a single column of the students table. What is wrong with this approach?
An ER diagram shows a one-to-many relationship: one Department has many Employees, but each Employee belongs to exactly one Department. When translating to a relational schema, where does the foreign key go?
A many-to-many relationship in an ER diagram must be implemented as a junction (associative) table when translated into a relational schema.
In an ER diagram, nearly every attribute of an entity should become its own separate table in the relational schema.
What is the purpose of drawing an ER diagram before writing any SQL, and what key design decisions does it help you make?