首页 > 其他 > 详细

【2019年8月版】OCP 071认证考试原题-第33题

时间:2019-11-20 10:53:46      阅读:166      评论:0      收藏:0      [点我收藏+]

Choose three.

Which three statements are true about a self join?

A) It must be an inner join.

B) It can be an outer join.

C) The ON clause must be used.

D) It must be an equijoin.

E) The query must use twodifferent aliases for the table.

F) The ON clause can be used.

Answer::BCD

(解析:左连接其实就是左外连接,是不同的称呼而已,其结果都是一样的,ANSI 语法有

左连接的语法,而 oracle 语法中用(+)来表示。)

select emp.empno,emp.deptno,dept.deptno,dept.dname

from emp left join dept on emp.deptno=dept.deptno;

select emp.empno,emp.deptno,dept.deptno,dept.dname

from emp left outer join dept on emp.deptno=dept.deptno;

select emp.empno,emp.deptno,dept.deptno,dept.dname

from emp ,dept

where emp.deptno=dept.deptno(+)

【2019年8月版】OCP 071认证考试原题-第33题

原文:https://www.cnblogs.com/cnblogs5359/p/11895631.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!