You are on page 1of 2

Mark Stanton Intro to Database -1200 5/2/2012

Homework Assignment #1 7. There are two relationships between STORE and EMPLOYEE. The first relationship is a 1:M relationship where STORE employs EMPLOYEE because one store can employ many employees and each employee is employed by one store. The second relationship, expressed by EMPLOYEE manages STORE, is a 1:1 relationship, because each store is managed by one employee and an employee manages only one store. 8.

9.

10.

TABLE EMPLOYEE BENEFIT JOB PLAN

PRIMARY KEY EMP_CODE EMP_CODE + PLAN_CODE JOB-CODE PLAN_CODE

FOREIGN KEY(S) JOB_CODE EMP_CODE, PLAN_CODE None None

17.

TABLE TRUCK BASE TYPE


18.

PRIMARY KEY TRUCK_CODE BASE_CODE TYPE_CODE

FOREIGN KEY(S) BASE_CODE,TYPE_CODE None None

TABLE TRUCK BASE TYPE


19.

ENTITY INTEGRITY YES YES YES

EXPLANATION Primary Key is Unique Primary Key is Unique Primary Key is Unique

TABLE TRUCK

REFERENTIAL INTEGRITY YES

EXPLANATION The table contains foreign keys and the values it references contain valid information in another table. The null is allowed since it is not a primary key.

BASE TYPE
22.

N/A N/A

23.

You might also like