Question: Question 3 ( 6 Points ) : Given the following database instance, answer questions 3 . 1 through 3 . 3 : Employee Plan emp

Question 3(6 Points):
Given the following database instance, answer questions 3.1 through 3.3:
Employee Plan
emp_code emp_lname job_code plan_code plan_description
EC14 Rudell JC21 Term Life
EC15 McDade JC12 Stock Purchase
EC16 Ruellardo JC13 Long-term disability
EC17 Smith JC34 Dental
EC20 Smith JC2
Job Benefit
job_code job_description emp_code plan_code
JC1 Clerical EC153
JC2 Technical EC161
JC2 DBA EC171
JC3 Manager EC173
EC174
Extra_Benefit EC203
job_code plan_code
JC32
Assume that the following attributes are the primary keys for the tables:
emp_code is the primary key for Employee table
job_code is the primary key for the Job table
plan_code is the primary key for the Plan table
emp_code, plan_code is a composite primary key for the Benefit table
job_code, plan_code is the composite primary key for the Extra_Benefit table
3.1)(2 Points) Do all tables exhibit entity integrity? Answer yes or no and then explain your answer for each table
Table Entity Integrity
(Yes/No) Explanation
Employee
Job
Plan
Benefit
Extra_Benefit
3.2)(2 Points) For each table in the database, identify foreign key(s)(if any). For each foreign key, state the referencing relation and the referenced relation.
Referencing Relation Foreign Key Referenced Relation
3.3)(2 Points) Do all tables exhibit referential integrity? Answer yes or no and then explain your answer for each table.
Table Referential Integrity (Yes/No) Explanation
Employee
Job
Plan
Benefit
Extra_Benefit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!