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

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

文章分类

全部博文(487)

文章存档

2024年(2)

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-03-06 11:30:30

64、(22-7) choose the best answer:

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

Evaluate the following SQL statement:

SELECT oi.order_id, product_id, order_date

FROM order_items oi JOIN orders o

USING(order_id);

Which statement is true regarding the execution of this SQL statement?

A) The statement would not execute because the table alias prefix is not used in the USING clause.

B) The statement would not execute because the column part of the USING clause cannot have a qualifier in the SELECT list.

C) The statement would not execute because table aliases are not allowed in the JOIN clause.

D) The statement would not execute because all the columns in the SELECT clause are not prefixed with table aliases.

Anser:B

(解析:该题考的是语法,因为 USING 子句的列部分在 SELECT 列表中不能具有限定符,所以该语句不会执行,把前缀 oi 去掉就可以了,但是其它的列可以用表的别名做为前缀:

SELECT order_id, oi.product_id, order_date

FROM order_items oi JOIN orders o

USING(order_id);


)该题之前有过类似的考题。

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