Ocp-1z0-051-Title Determination-Article 2 title

Source: Internet
Author: User

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

Which views can has all DML operations performed on it?

(Choose all, 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   

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

Topic Analysis:

The question is, which view is capable of running all DML operations, and we know that we want to run the insert operation on the view. Then the view is going to include all the non-empty fields of the base table, so it is obvious that C and D are wrong. In addition to the sum of the D option (Quantity_sold) This is wrong and the field will need to add an alias.

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Ocp-1z0-051-Title Determination-Article 2 title

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.