Database Management, Spring 2026 — Assignment #3 (30 pts)
| Entity | Attributes | PK | Type |
|---|---|---|---|
| COLLEGE | Name, COffice, CPhone | Name | Strong |
| DEPARTMENT | DName, Code, DNumber, DPhone | Code | Strong |
| COURSE | CsName, CsNumber, CsDesc, CLevel, Credits | CsNumber | Strong |
| SECTION | SNumber, Semester, Year, Classroom(BuildingNo, RoomNo) | {CsNumber, Semester, Year, SNumber} | Weak (owner: COURSE) |
| INSTRUCTOR | IId, IName, Office, Phone, IRank | IId | Strong |
| STUDENT | SId, SName, SAddr, SPhone, Dob | SId | Strong |
| Relationship | Entities | (min,max) | Attributes | Description |
|---|---|---|---|---|
| Administers | COLLEGE — DEPARTMENT | College(1,N) — Dept(1,1) | — | Each college administers multiple departments; each department belongs to one college.(每個學院管理多個系所。) |
| Deans | INSTRUCTOR — COLLEGE | Instructor(0,1) — College(1,1) | — | Each college has exactly one dean (a faculty member).(每個學院有一位院長。) |
| Chairs | INSTRUCTOR — DEPARTMENT | Instructor(0,1) — Dept(1,1) | CStartDate | Each department has one chair; tracks start date.(每個系所有一位系主任,記錄開始日期。) |
| Works_For | INSTRUCTOR — DEPARTMENT | Instructor(1,1) — Dept(0,N) | — | Each instructor has one primary department.(每位教師有一個主要系所。) |
| Offers | DEPARTMENT — COURSE | Dept(1,N) — Course(1,1) | — | Each department offers courses; each course belongs to one department.(每個系所開設課程。) |
| Has_Section | COURSE — SECTION | Course(1,N) — Section(1,1) | — | Identifying relationship. Each course has sections.(識別關係,課程有多個 section。) |
| Teaches | INSTRUCTOR — SECTION | Instructor(0,N) — Section(1,1) | — | Each section has one instructor; an instructor can teach many sections.(每個 section 有一位教師。) |
| Enrolls | STUDENT — SECTION | Student(0,N) — Section(5,N) | Grade | Students enroll in sections; each section needs at least 5 students.(學生選課,每個 section 至少 5 人。) |
| Major | STUDENT — DEPARTMENT | Student(1,1) — Dept(0,N) | — | Each student has exactly one major department.(每個學生有一個主修。) |
| Minor | STUDENT — DEPARTMENT | Student(0,N) — Dept(0,N) | — | A student may have zero or more minor departments.(學生可以有零到多個副修。) |
Assignment #3 — Database Management, Spring 2026 — 1134542 俞綱皓