OCP-1Z0-051-Question Analysis-2nd Question

Source: Internet
Author: User

2. View the Exhibit to examine the description for the SALES table.

Which views can have all DML operations completed MED on it? (Choose all that apply .)

A.

 CREATE VIEW v3AS SELECT * FROM SALES   WHERE cust_id = 2034   WITH CHECK OPTION;

B.

CREATE VIEW v1AS SELECT * FROM SALES   WHERE time_id <= SYSDATE - 2*365   WITH CHECK OPTION;

C.

CREATE VIEW v2AS SELECT prod_id, cust_id, time_id FROM SALES   WHERE time_id <= SYSDATE - 2*365   WITH CHECK OPTION; 

D.

CREATE VIEW v4AS 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

Question Analysis:

The question is: which view can perform all DML operations. We know that to perform the insert operation on the view, the view must contain all non-empty fields in the base table, therefore, it can be clearly determined that C and D are incorrect, and the SUM (quantity_sold) of the D option is also incorrect. aliases must be added for this field.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.