From Business Rules to a 3NF Physical ER Diagram
Enter your credentials to begin tracking your laboratory session.
First, check your understanding of the concepts. The classification exercise unlocks once you answer.
The terms below are a mixture of entities and attributes from a university database. For each term, decide whether it is an Entity or an Attribute. For each attribute, then choose which of your entities it describes. (Hint: There are four entities.)
Review the university rules: A Department admits multiple Students (1:N), a Student occupies 0 or 1 Dorm Bed, and a Dorm Bed is occupied by 0 or 1 Student (optional 1:1, so students may have no bed and beds may be vacant), and Students enroll in multiple Courses (M:N).
Using the rules above, write a Mermaid erDiagram of the conceptual model for the four entities you identified in Step 1.
ENTITY_A [left]--[right] ENTITY_B : "label". Symbols: || exactly one, |o / o| zero or one, }| / |{ one or many, }o / o{ zero or many. Each symbol describes the entity on its own side.DEPARTMENT, STUDENT, DORM_BED, COURSE.Evaluate the normalization rules designed to eliminate insertion, deletion, and update anomalies.
The resulting schema satisfies 1NF, 2NF, and 3NF, resolves the M:N relationship with an associative entity, and models the optional 1:1 with a nullable, UNIQUE foreign key in DORM_BED (a NULL StudentID means the bed is vacant).
Database Systems Laboratory