Database Management, Spring 2026 — Assignment #3
| Entity | Attributes | PK | Description |
|---|---|---|---|
| STATE | StateName, Region | StateName | U.S. State. Region ∈ {Northeast, Midwest, Southeast, Southwest, West}(美國州,含地區分類) |
| CONGRESS_PERSON | CpId, Name, StartDate, Party | CpId | House Representative. Party ∈ {Republican, Democrat, Independent, Other}(眾議員,含政黨) |
| BILL | BillName, DateOfVote, Passed | BillName | Proposed law. Passed ∈ {Yes, No}(法案,含投票日期和通過與否) |
| Relationship | Entities | Cardinality | Attributes | Description |
|---|---|---|---|---|
| Represents | STATE — CONGRESS_PERSON | STATE(1,N) — CP(1,1) | — | A congressperson represents exactly one state; a state has at least one representative.(一個議員代表一個州;一個州至少有一個議員。) |
| Sponsors | CONGRESS_PERSON — BILL | CP(0,N) — BILL(1,N) | — | A bill has at least one sponsor; a congressperson can sponsor many bills (or none).(一個法案至少有一個提案人;一個議員可以提案多個法案。) |
| Votes_On | CONGRESS_PERSON — BILL | CP(0,N) — BILL(0,N) | Vote {Yes, No, Abstain, Absent} | Tracks how each congressperson voted on each bill.(追蹤每個議員對每個法案的投票。) |
Assignment #3 — Database Management, Spring 2026 — 1134542 俞綱皓