Database Management
primer-original-v2mediumDatabase ManagementData Manipulation Languageprimer-original-v2

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

Quick AnswerThe correct answer is UPDATE Employee SET Deptid=3 WHERE Empid = 101; because it directly addresses the core logic of Database Management.

This question has been retained as-is due to its unique context.

Related Database Management questions

Practice more Database Management questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.