Which two statements are true regarding views?

Which two statements are true regarding views? (Choose two.)

Which two statements are true regarding views? (Choose two.)

A.
A simple view in which column aliases have been used cannot be updated.

B.
Rows cannot be deleted through a view if the view definition contains the DISTINCT keyword.

C.
Rows added through a view are deleted from the table automatically when the view is dropped.

D.
The OR REPLACE option is used to change the definition of an existing view without dropping and
recreating it.

E.
The WITH CHECK OPTION constraint can be used in a view definition to restrict the columns displayed
through the view.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Richard

Richard

Agree.

B – “If a view is defined by a query that contains SET or DISTINCT operators, a GROUP BY clause, or a group function, then rows cannot be inserted into, updated in, or deleted from the base tables using the view.”

D – “You can redefine the view with a CREATE VIEW statement that contains the OR REPLACE clause. The OR REPLACE clause replaces the current definition of a view and preserves the current security authorizations.”

Link – https://docs.oracle.com/database/121/ADMIN/views.htm#ADMIN11781