Chinaunix首页 | 论坛 | 博客
  • 博客访问: 603140
  • 博文数量: 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-11 16:07:03

76、View the exhibit and examine the description of the DEPARTMENTSand EMPLOYEEStables.

The retrieve data for all the employees for their EMPLOYEE_ID, FIRST_NAME, and DEPARTMENT NAME, the following SQL statement was written:

SELECT employee_id, first_name, department_name

FROM employees

NATURAL JOIN departments;

The desired output is not obtained after executing the above SQL statement. What could be the reason for this?

A. The table prefix is missing for the column names in the SELECTclause.

B. The NATURAL JOINclause is missing the USINGclause.

C. The DEPARTMENTStable is not used before the EMPLOYEEStable in the FROMclause.

D. The EMPLOYEESand DEPARTMENTStables have more than one column with the same column name and data type.

Correct Answer: D

Section: (none) Explanation 解析:之前讲过,NATURAL JOIN 要求要有相同的列名和数据类型。using 只能用在 equiue join ,而且必须列的名字要相同,类型可以不同,但是可以 隐式转过去

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