Question: Consider the EMPLOYEE table's constraint EMPSUPERFK as specified in Figure 4.2 is changed to read as follows: CONSTRAINT EMPSUPERFK FOREIGN KEY (SUPERSSN) REFERNCES EMPLOYEE(SSN) ON
CONSTRAINT EMPSUPERFK
FOREIGN KEY (SUPERSSN) REFERNCES EMPLOYEE(SSN)
ON DELETE CASCADE ON UPDATE CASCADE,
Answer the following questions:
a. What happens when the following command is run on the database state shown in Figure 5.6? DELETE EMPLOYEE WHERE LNAME = 'Borg'
b. Is it better to CASCADE or SET NULL in case of EMPSUPERFK constraint ON DELETE?
Step by Step Solution
3.33 Rating (156 Votes )
There are 3 Steps involved in it
a The James E Borg entry is deleted from the table and each employee with ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
888-CS-DB (2290).docx
120 KBs Word File
