nerdexam
Oracle

1Z0-061 · Question #312

Study this view creation statement: create view dept30 as select department_id,employee_id,last_name from employees where department_id=30 with check option; What might make the following statement…

The correct answer is C. The WITH CHECK OPTION will prevent DML that would cause a row to disappear from the. A, B, D. A is wrong because views are by default created read/write. B is wrong because the view is a simple view. D is wrong because the statement cannot succeed because the check option will reject it.

Creating Other Schema Objects

Question

Study this view creation statement:

create view dept30 as select department_id,employee_id,last_name from employees where department_id=30 with check option; What might make the following statement fail? (Choose the best answer.) update dept30 set department_id=10 where employee_id=114;

Options

  • AUnless specified otherwise, views will be created as WITH READ ONLY.
  • BThe view is too complex to allow DML operations.
  • CThe WITH CHECK OPTION will prevent DML that would cause a row to disappear from the
  • DThe statement will succeed.

How the community answered

(70 responses)
  • A
    4% (3)
  • B
    11% (8)
  • C
    79% (55)
  • D
    6% (4)

Explanation

A, B, D. A is wrong because views are by default created read/write. B is wrong because the view is a simple view. D is wrong because the statement cannot succeed because the check option will reject it.

Topics

#WITH CHECK OPTION#view DML#row visibility constraint#view update

Community Discussion

No community discussion yet for this question.

Full 1Z0-061 Practice