zoukankan      html  css  js  c++  java
  • 【12c OCP】CUUG OCP认证071考试原题解析(36)

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

    )

  • 相关阅读:
    printf和sprintf
    操作数、运算符、表达式
    全自动加法机
    Ascll、GB2312、Ansi
    数组
    循环
    编程命名规范
    浮点数及缺陷
    Android编码规范
    RGB着色对照表
  • 原文地址:https://www.cnblogs.com/cnblogs5359/p/10430423.html
Copyright © 2011-2022 走看看