Oracle Database SQL — Question 92
Which three statements are true about performing DML operations on a view with no INSTEAD OF triggers defined? (Choose three.)
Answer options
- A. Views cannot be used to query rows from an underlying table if the table has a PRIMARY KEY and the PRIMARY KEY columns are not referenced in the defining query of the view.
- B. Delete statements can always be done on a table through a view.
- C. The WITH CHECK clause has no effect when deleting rows from the underlying table through the view.
- D. Views cannot be used to add rows to an underlying table if the table has columns with NOT NULL constraints lacking default values which are not referenced in the defining query of the view.
- E. Views cannot be used to add or modify rows in an underlying table if the defining query of the view contains the DISTINCT keyword,
- F. Insert statements can always be done on a table through a view.
Correct answer: B, D, F
Explanation
Option B is correct because delete operations can generally be performed through views unless restricted by other conditions. Option D is also correct as views cannot add rows if they do not account for NOT NULL constraints in the underlying table. Option F is true since insert statements can be executed through a view, provided all necessary columns are addressed.