Question: 2. Consider the two relations and their schemas as listed below: Employee(name, emplD, birthDate, gender, address, phone) TaxAccount(name, SSN, empID, federalDeductionAmt, stateDeductionAmt, ficaDeductionAmt) Constraint:

2. Consider the two relations and their schemas as listed below: Employee(name, emplD, birthDate, gender,

2. Consider the two relations and their schemas as listed below: Employee(name, emplD, birthDate, gender, address, phone) TaxAccount(name, SSN, empID, federalDeductionAmt, stateDeductionAmt, ficaDeductionAmt) Constraint: The relation TaxAccount must contain information related to all current employees only. a) (10 points) Express the foreign key constraint in SQL. b) (7 points) What are the appropriate policies for update and delete operations? Why?

Step by Step Solution

3.46 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Expressing the foreign key constraint in SQL SQL statement SQL ALTER TABLE TaxAccount ADD CONSTRAINT FKTaxAccountEmployee FOREIGN KEY empID REFERENCES EmployeeempID ON DELETE CASCADE ON UPDATE CASCA... View full answer

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 Programming Questions!