zoukankan      html  css  js  c++  java
  • 【OCP12c】CUUG最新考试原题整理及答案(07112)

    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 都会显示有客户但是没在某个城市的人

  • 相关阅读:
    867-转置矩阵
    704-二分查找
    选择排序
    999-车的可用捕获量
    66-加一
    观察者模式(1)
    命令模式(3)-宏命令
    命令模式(2)-命令接口中的撤销方法
    接口测试
    移动端测试
  • 原文地址:https://www.cnblogs.com/cnblogs5359/p/10383906.html
Copyright © 2011-2022 走看看