oracle+去括号,关于001 TK的几个问题,请大家一起讨论一下

一、

The employee table contains these columns.

LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) DEPT_ID

NUMBER(9)

You need to display the names of the employees that are not assigned to the

department. Evaluate this SQL statement.

SELECT last_name, first_name

FROM employee

WHERE dept_id is NULL

Which change should you make to achieve the desired result?

A. Create an outer join.

B. Change the column in the where condition.

C. Change the operator in the where condition

D. Add a second condition to the where condition

TK上答案C,我觉得所有答案都不对。这个语句可以实现它所要做的功能

二、

Which statement about multiple sub-queries is True?

A. A pair wise comparison produces a cross product.

B. A non-pair wise comparison produces a cross product.

C. In a pair wise subquery, the values returned from the subquery are compared

individually to the values in the outer query.

D. In a non-pair wise subquery, the values returned from the subquery are

compared as a group to the values in the outer query.

请大家对这道题分析一下,

三、

Evaluate the SQL statement.

SELECT e.id, (.15* e.salary) + (.25* e.bonus),

(s.sale_amount * (.15* e.commision_pct))

FROM employee e , sales

WHERE e.id = s.emp_id;

What would happen if you removed all the parenthesis from calculation?

A. Results will be lower.

B. Results will be higher.

C. Statement will not execute.

D. Statement will achieve some results.

TK上答案是C,我觉得所有答案都不对。去掉括号,仍能执行

四、

When selecting data which statement is valid about projection?

A. Projection allows due to choose rows.

B. Projection allows due to choose columns.

C. Projection allows due to joined tables together.

D. Projection allows due to add columns to a table.

Answer: B

请问什么为projection?

请大家一起讨论,不甚感激

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值