nerdexam
Oracle

1Z0-052 · Question #222

View the Exhibit to see the structure of the EMPLOYEES and DEPARTMENTS tables. Your organization plans to dissolve the department with department ID 30. You execute the following command to delete row

Sign in or unlock 1Z0-052 to reveal the answer and full explanation for question #222. The question stem and answer options stay visible for context.

Managing Data and Concurrency

Question

View the Exhibit to see the structure of the EMPLOYEES and DEPARTMENTS tables. Your organization plans to dissolve the department with department ID 30. You execute the following command to delete rows from the DEPARTMENTS table:

SQL>delete from DEPARTMENTS where DEPT_ID = 30; The command fails and displays the following error:

ERROR at line 1:

ORA-02292: integrity constraint (HR.SYS_C005374) violated - child record found Which two actions would you take to overcome this error? (Choose two.)

Exhibit

1Z0-052 question #222 exhibit

Options

  • Aalter the foreign key constraint to include the cascade option
  • Balter the foreign key constraint to include the on delete cascade option
  • Cfirst, drop the EMPLOYEES table and then delete the rows from the DEPARTMENTS table
  • Dfirst, drop the DEPARTMENTS table and then delete the rows from the EMPLOYEES table
  • Efirst, delete all of the rows from EMPLOYEES table and then delete the rows from the
  • Ffirst, delete rows from the EMPLOYEES table for department id 30 and then delete the rows from

Unlock 1Z0-052 to see the answer

You've previewed enough free 1Z0-052 questions. Unlock 1Z0-052 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#foreign key constraints#referential integrity#cascade delete#DML errors
Full 1Z0-052 Practice