码迷,mamicode.com
首页 > 其他好文 > 详细

【12c OCP】CUUG OCP认证071考试原题解析(36)

时间:2019-02-25 15:04:57      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:with   err   res   list   _id   The   join   utc   cut   

36.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 联接中使用的列不能有限定词

)

【12c OCP】CUUG OCP认证071考试原题解析(36)

标签:with   err   res   list   _id   The   join   utc   cut   

原文地址:https://blog.51cto.com/13854012/2354406

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!