Database Management, Spring 2026 — Assignment #3
| Component | Original (Incorrect) | Corrected |
|---|---|---|
| Manager | Composite attribute of Department ✗ Redundant, duplicates Employee data |
MANAGES relationship (Employee — Department) ✓ 1:1, reuses existing Employee entity |
| Project | Composite attribute of Employee ✗ Cannot model M:N, has own PK |
Separate PROJECT entity ✓ With Project-ID, ProjectName, StartDate, EndDate |
| Responsible Dept | Attribute inside Project composite ✗ Entity ref stored as attribute |
RESPONSIBLE_FOR relationship (Dept — Project) ✓ 1:M, proper ER modeling |
| Employee-Project | Not modeled (Project is just an attribute) ✗ |
WORKS_ON relationship (M:N) ✓ |
| Relationship | Cardinality | Explanation |
|---|---|---|
| HAS | Dept(1,1) — Emp(1,N) | Each employee belongs to exactly one department; each department has at least one employee.(每個員工屬於一個部門;每個部門至少有一個員工。) |
| MANAGES | Dept(1,1) — Emp(0,1) | Each department has exactly one manager; an employee may manage at most one department (most don't).(每個部門有一個經理;一個員工最多管理一個部門。) |
| WORKS_ON | Emp(0,N) — Proj(1,N) | An employee can work on many projects (or none); each project has at least one employee.(員工可以參與多個專案;每個專案至少有一個員工。) |
| RESPONSIBLE_FOR | Dept(0,N) — Proj(1,1) | Each project has exactly one responsible department; a department can be responsible for many projects.(每個專案有一個負責部門;一個部門可以負責多個專案。) |
Assignment #3 — Database Management, Spring 2026 — 1134542 俞綱皓