DB211 - Unit 3 Assignment A
DB211 - Unit 3 Assignment A
Instructor:
Unit 3, Assignment A
Student:
Assignment Instructions:
Solve Chapter 3 Problems 17-23 / Pages 101-102.
Please use Microsoft Visio for the ERD. For more on how to use Visio for the assignment, see Unit 3
Instructional Videos! Submit your assignment file using the link above (due Sunday of this unit, 40 points)
Assignment (Completed work and answers in RED text):
17. For each table, identify the primary key and the foreign key(s). If a table does not have a foreign key,
write None in the space provided.
TABLE
PRIMARY KEY
FOREIGN KEY(S)
TRUCK
TRUCK_NUM
BASE_CODE, TYPE_CODE
BASE
BASE_CODE
NONE
TYPE
TYPE_CODE
NONE
18. Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer.
TABLE
ENTITY INTEGRITY EXPLANATION
TRUCK
YES
BASE
YES
TYPE
YES
19. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer. Write NA (Not
Applicable) if the table does not have a foreign key.
TABLE
REFERENTIAL INTEGRITY EXPLANATION
TRUCK
YES
BASE
NA
NONE
TYPE
NA
NONE
BASE_CODE, TYPE_CODE,
TRUCK_BUY_DATE
BASE
BASE_CODE
BASE_CITY, BASE_STATE,
BASE_AREA_CODE, BASE_PHONE,
BASE_MANAGER
TYPE
TYPE_CODE
TYPE_DESCRIPTION