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

【OCP-12c】CUUG最新考试原题整理及答案(071-12)

时间:2019-02-15 18:02:42      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:long   rect   关联   最新   options   from   nat   wing   blank   

12、(5-12)choose two:
Examine the data in the CUSTOMERS table:
You want to list all cities that have more than one customer along with the customer details.
Evaluate the following query:
SQL>SELECT c1.custname, c1.city
FROM Customers c1__Customers c2
ON (c1.city=c2.city AND c1.custname<>c2.custname);

Which two JOIN options can be used in the blank in the above query to give the correct output?
A) NATURAL JOIN
B) RIGHT OUTER JOIN
C) LEFT OUTER JOIN
D) JOIN
E) FULL OUTER JOIN

Answer:BD
(解析:验证过
A 选项不正确,NATURAL JOIN 自然连接不需要关联条件,所以下面的 ON 子句会报错。
CE 选项不正确,LEFT OUTER JOIN 和 FULL OUTER JOIN 都会显示有客户但是没在某个城市的人

【OCP-12c】CUUG最新考试原题整理及答案(071-12)

标签:long   rect   关联   最新   options   from   nat   wing   blank   

原文地址:http://blog.51cto.com/13854012/2350583

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