OCP-051-002

发布时间:2020-08-10 19:57:28 作者:fwinmachao
来源:ITPUB博客 阅读:148
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.)
OCP-051-002

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;


---updateable的视图有二种,一种是继承基表的视图, 一种是使用instead of的触发器来实现

继承的视图DML操作需要满足一下条件:
1. 视图必须包含基表的每一列.
2. 视图不能包含一下操作: set, distinct, aggregate or analytic function, group by, order by, model, connect by, start with
                                   subquery in select, with read only.


推荐阅读:
  1. Qt第五课 无构造函数可以接受源类型,或构造函数重载决策不明确
  2. Python如何用filter函数筛选数据

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ocp-051-002 00 51

上一篇:智能手环两极分化:Fitbit卖身,华为小米们扶摇直上

下一篇:Oracle 调优确定存在问题的SQL

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》