近两年来,OCP的考试题库频率变化,不断的增加新考题,071考试就是其中一个,给很多考071的考生造成困扰,对此,我们专门整理了OCP考试里关于071考试的原题,并带上答案,分享给大家。
--------------------------------------------
071题库汇总-第54题、choose the best answer:
View the Exhibit and examine the structure of the ORDER_ITEMS and ORDERS tables.
You are asked to retrieve the ORDER_ID, PRODUCT_ID, and total price (UNIT_PRICE multiplied by QUANTITY), where the total price is greater than 50,000.
You executed the following SQL statement:
SELECT order_id, product_id, unit_price*quantity "Total Price"
FROM order_items
WHERE unit_price*quantity > 50000
NATURAL JOIN orders;
Which statement is true regarding the execution of the statement?
A) The statement would not execute because the WHERE clause is before the NATURAL JOIN clause.
B) The statement would not execute because the USING keyword is missing in the NATURAL JOIN clause.
C) The statement would execute and provide the desired result.
D) The statement would not execute because the ON keyword is missing in the NATURAL JOIN clause.
Answer:A
(解析:注意语法,where 子句应该出现在各种连接的语句后面,比如 right outer join 等等。)
-----------------------------------------------
OCP解析公开课时间:【每周五晚8点】
OCP解析公开课地址:https://ke.qq.com/course/326223
OCP解析群资料分享:1015267481 验证:ocp
另外,除了OCP公开课,OCM题库直播也同步进行中,OCM最新题库大爆料-【每周四晚8点】,【微信群直播】,可以联系咨询老师进群参与