QuestionQ195

VerifiedManaging Schema Objects

Examine the following statement, which executes successfully:

Question Image

Which statement violates the CHECK constraint?

Explanation

WITH CHECK OPTION on a view prevents an INSERT or UPDATE issued through that view from creating a row that the view’s defining query cannot select. Because emp80 is restricted to department_id = 80, changing a row through emp80 to department_id = 90 violates that constraint. Oracle CREATE VIEW documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!