Which of the update statement produces the following error in the employee table? ORA-02291: integrity constraint (SYS_C23) violated - parent key not found.
Answer options
A
UPDATE Employee SET Deptid=3 WHERE Empid = 101;
B
UPDATE Employee SET Deptid=3;
C
UPDATE Employee SET Empid = 101;
D
UPDATE Employee SET Deptid=3, Empid=101;
Correct answer: UPDATE Employee SET Deptid=3 WHERE Empid = 101;
Explanation
Setting a foreign key value to a non-existent department ID causes an integrity constraint violation.