您好,登錄后才能下訂單哦!
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(+)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。