Professional Documents
Culture Documents
Lab 3 - Part-1
Lab 3 - Part-1
Part 1
1.
TABLE PRIMARY KEY FOREIGN KEY(S)
EMPLOYEE EMP_CODE JOB_CODE
BENEFIT EMP_CODE & PLAN_CODE EMP_CODE, PLAN_CODE
JOB PLAN_CODE NONE
PLAN JOB_CODE NONE
2.
TABLE INTEGRITY ENTITY EXPLANATION
EMPLOYEE Yes Each value of EMP_CODE is unique,
there are no nulls.
BENEFIT Yes Each combination of EMP_CODE and
PLAN_CODE value is unique, there are
no nulls.
3.
TABLE REFERENTIAL ENTITY EXPLANATION
JOB No
PLAN No
= JOB EMPLOYEE
(Has)
6. A composite key is a combination of at least two columns in a table that can be used to
specifically identify each row in a social information base. For instance, the EMP
LNAME and JOB CODE combination serves as the composite key in the Employee
table.