|
Explanation: This statement will create view that can be used to change tables in underlying table through simple views. It includes primary key, NOT NULL column and foreign key to avoid constraint restrictions. Incorrect Answers: 1: This statement does not include JOB_ID column that cannot be NULL. In general, all constraint restrictions defined on the underlying table also apply to modifying data via the view. For example, you can’t add data to an underlying table via a view that violates the table’s primary key constraint. 3: You cannot update a column of an underlying table if the simple view use a single-row function to define the column. 4: You may not insert, update, or delete records data on the table underlying the simple view if the SELECT statement creating the view contains a GROUP BY clause, GROUP function, or DISTINCT clause. OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 298-299 Chapter 7: Creating Other Database Objects in Oracle
|