【2019年8月版本】OCP 071認證考試最新版本的考試原題-第11題

Choose two.ide

Which two statements are true about a self join?ui

A) The join key column must have an index.it

B) It can be a left outer join.class

C) It must be a full outer join.select

D) It can be an inner join.di

E) It must be an equie join.view

Answer:BDvi

(自鏈接其實跟兩張表的鏈接同樣。能夠是等鏈接、左右外鏈接等等。co

不過在進行內鏈接時爲了區別表的名字,須要加別名join

select w.ename,m.ename

from emp2 w

inner join emp2 m

on w.mgr=m.empno;

)

相關文章
相關標籤/搜索