近两年来,OCP的考试题库频率变化,不断的增加新考题,071考试就是其中一个,给很多考071的考生造成困扰,对此,我们专门整理了OCP考试里关于071考试的原题,并带上答案,分享给大家。
--------------------------------------------
18.choose the best answer
View the Exhibits and examine the structures of the PRODUCTS, SALES, and CUSTOMERS tables.
You issue the following query:
SQL>SELECT p.prod_id,prod_name,prod_list_price,
quantity_sold,cust_last_name
FROM products p NATURAL JOIN sales s NATURAL JOIN customers c
WHERE prod_id =148;
Which statement is true regarding the outcome of this query?
A) It executes successfully.
B) It produces an error because a column used in the NATURAL join cannot have a qualifier.
C) It produces an error because all columns used in the NATURAL join should have a qualifier.
D) It produces an error because the NATURAL join can be used only with two tables.
Answer:B
(解析:执行该语句时返回错误:
SELECT p.prod_id,prod_name,prod_list_price,
*
第 1 行出现错误:
ORA-25155: NATURAL 联接中使用的列不能有限定词
)
--------------------------------------------
OCP解析公开课时间:【每周五晚8点】
OCP解析公开课地址:https://ke.qq.com/course/326223
OCP解析群资料分享:1015267481 验证:ocp
另外,除了OCP公开课,OCM题库直播也同步进行中,OCM最新题库大爆料-【每周四晚8点】,【微信群直播】,可以联系咨询老师进群参与