大家好,又见面了,我是全栈君,今天给大家准备了Idea注册码。
2. View the Exhibit to examine the description for the SALES table.
Which views can have all DML operations performed on it?
(Choose all that apply.)
A.
CREATE VIEW v3 AS SELECT * FROM SALES WHERE cust_id = 2034 WITH CHECK OPTION;
B.
CREATE VIEW v1 AS SELECT * FROM SALES WHERE time_id <= SYSDATE - 2*365 WITH CHECK OPTION;
C.
CREATE VIEW v2 AS SELECT prod_id, cust_id, time_id FROM SALES WHERE time_id <= SYSDATE - 2*365 WITH CHECK OPTION;
D.
CREATE VIEW v4 AS SELECT prod_id, cust_id, SUM(quantity_sold) FROM SALES WHERE time_id <= SYSDATE - 2*365 GROUP BY prod_id, cust_id WITH CHECK OPTION;
Answer: AB
题目解析:
题目是问,哪个视图能够运行全部的DML操作,我们知道要在视图上运行insert操作。那么该视图就要包括基表全部的非空字段,所以能够明显的推断出来C和D是错误的。另外D选项的SUM(quantity_sold) 这是错误的,本场将需要添加一个别名。
版权声明:本文博客原创文章,博客,未经同意,不得转载。
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/117293.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...