You work as a database administrator at ABC.com. You study the exhibit carefully.
Exhibit:
You want to create a SALE_PROD view by executing the following SQL statements:
Which statement is true regarding the execution of the above statement?
A. The view will be created and you can perform DLM operations on the view
B. The view will not be created because the join statements are not allowed for creating a view
C. The view will not be created because the GROUP BY clause is not allowed for creating a view
D. The view will be created but no DML operations will be allowed on the view
Answer: D
Explanation:
Rules for Performing DML Operations on a View
You cannot add data through a view if the view includes:如果视图包含以下内容将不能创建
Group functions --group函数
A GROUP BY clause --group by 子句
The DISTINCT keyword --DISTINCT关键字
The pseudocolumn ROWNUM keyword --ROWNUM关键字
Columns defined by expressions
NOT NULL columns in the base tables that are not selected by the view --基本表中的非空列