erd_exam1
테이블 (4)
사원 (EMPLOYEE)
- 사번 (employee_no) — number — 기본 키 — NOT NULL — primary key
- 이름 (employee_name) — varchar2(30) — NOT NULL
- 성별 (employee_gender) — char(3) — NOT NULL — '남'or'여' 만 대입
- 주소 (employee_addr) — varchar2(300) — NOT NULL
- 전화번호 (employee_phone) — char(13) — NOT NULL — 010-0000-0000 형태
- 주민등록번호 (employee_ssn) — varchar2(14) — NOT NULL — unique 추가
출결상태 (attend_tbl)
- 출석번호 (attend_no) — number — 기본 키 — NOT NULL
- 날짜 (attend_date) — date — NOT NULL
- 사번 (employee_no) — number — 외래 키 → 사원.사번 — NOT NULL — primary key
- 출결사항 (attend_status) — char(6) — NOT NULL — '출근'or'결근'
출결상태2 (attend_tbl2)
- 출석번호 (attend_no) — number — 기본 키 — NOT NULL
- 날짜 (attend_date) — date — NOT NULL
- 사번 (employee_no) — number — 외래 키 → 사원.사번 — NOT NULL — primary key
출결상태3 (attend_tb3)
- 날짜 (attend_date) — date — 기본 키 — NOT NULL
- 사번 (employee_no) — number — 외래 키 → 사원.사번 — NOT NULL — primary key