4주차
테이블 (6)
DEPARTMENT
- Key (depID) — int — 기본 키 — NOT NULL
- Field (depName) — char(20)
- Field (depLocation) — char(20)
- Field (manager) — int
- Field (managerStartDate) — date
- Key (empSSN) — char(14) — 외래 키 → EMPLOYEE.Key — NOT NULL
DEPENDENT
- Key (depName) — int — 기본 키 — NOT NULL
- Field (depGender) — char(20)
- Field (depBirthday) — date
- Field (depRelationship) — int
- Field (depParent) — char(20)
- Field (depSSN) — char(20)
- Key (empSSN) — char(14) — 외래 키 → EMPLOYEE.Key — NOT NULL
EMPLOYEE
- Key (empSSN) — char(14) — 기본 키 — NOT NULL
- Field (empName) — char(30)
- Field (department) — int
- Key (depID) — int — 외래 키 → DEPARTMENT.Key — NOT NULL
- Key (superVssn) — char(14) — 외래 키 → EMPLOYEE.Key — NOT NULL
PROJECT_EMPLOYEE
- Key (projNo) — int — 기본 키 — NOT NULL
- Field (projempNo) — char(20)
- Field (projPosition) — char(20)
- Key (empSSN) — char(14) — 외래 키 → EMPLOYEE.Key — NOT NULL
PROJRCT
- Key (projectID) — int(10) — 기본 키 — NOT NULL
- Field (projectName) — char(30)
- Field (startDate) — date
- Field (endDate) — date
- Field (description) — text
- Key (ManageDepID) — int — 외래 키 → DEPARTMENT.Key — NOT NULL
- Key (projNo) — int — 외래 키 → PROJECT_EMPLOYEE.Key — NOT NULL
WORKSON
- Key (empSSN) — char(14) — 외래 키 → EMPLOYEE.Key — NOT NULL
- Key (projectID) — int(10) — 외래 키 → PROJRCT.Key — NOT NULL
- Field (hoursPerWeek) — float
- Key (projNo) — int — 외래 키 → PROJECT_EMPLOYEE.Key — NOT NULL