Chinaunix首页 | 论坛 | 博客
  • 博客访问: 596094
  • 博文数量: 487
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4916
  • 用 户 组: 普通用户
  • 注册时间: 2018-07-05 13:59
个人简介

ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291

文章分类

全部博文(487)

文章存档

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-03-04 13:17:14

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 等等。)

阅读(1291) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~