OCP-051-002

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.



当前文章:OCP-051-002
文章起源:http://bzwzjz.com/article/jgscis.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站制作 古蔺网站建设 响应式网站建设 做网站设计 品牌网站建设 成都商城网站建设 成都企业网站设计 成都网站设计 重庆企业网站建设 网站建设费用 网站建设改版 响应式网站设计 成都网站建设 定制网站设计 高端网站建设 成都网站设计公司 移动手机网站制作 网站制作 LED网站设计方案 成都网站制作 成都网站建设 营销型网站建设