zoukankan      html  css  js  c++  java
  • 【Oracle 12c】最新CUUG OCP071考试题库(54题)

    54、(12-15) choose the best answer:

    View the Exhibit and examine the structure of the ORDER_ITEMS and ORDERS tables.

    You are asked to retrieve the ORDER_ID, PRODUCT_ID, and total price (UNIT_PRICE multiplied by QUANTITY), where the total price is greater than 50,000.

    You executed the following SQL statement:

    SELECT order_id, product_id, unit_price*quantity "Total Price"

    FROM order_items

    WHERE unit_price*quantity > 50000

    NATURAL JOIN orders;

    Which statement is true regarding the execution of the statement?

    A) The statement would not execute because the WHERE clause is before the NATURAL JOIN clause.

    B) The statement would not execute because the USING keyword is missing in the NATURAL JOIN clause.

    C) The statement would execute and provide the desired result.

    D) The statement would not execute because the ON keyword is missing in the NATURAL JOIN clause.

    Answer:A

    (解析:注意语法,where 子句应该出现在各种连接的语句后面,比如 right outer join 等等。)

  • 相关阅读:
    php基础语言
    cookie和setting
    php数据连接
    php连接sql
    php提交
    今天学习了php的数据类型
    第一天进入php,这只是自己的一个心情
    02-07 (2) 自连接
    内连接 和左连接查询 02-07 (1)
    out 和ref 的区别
  • 原文地址:https://www.cnblogs.com/cnblogs5359/p/10470132.html
Copyright © 2011-2022 走看看