0
我有三個表如下三個表:加入使用Oracle
table 1 table 2 table 3
------- ------- -------
a a a
b c c
c f
d
e
f
我想加入這三個表到1,這將導致以下:
result table
------------
a a a
b
c c c
d
e
f f
注意到,第二和如果第三個col沒有匹配,則它包含空白行。我怎樣才能實現這一點使用Oracle SQL?
這是一個家庭作業的問題。請告訴你迄今爲止所嘗試的。 – Tomalak
@Tomalak我嘗試使用select * from table1,table2,table3 where table1.primarykey = table2.primarykey and table2.primarykey = table3.primarykey – epsac
@OMG Ponies我使用(+)但沒有達到我想要的效果。 – epsac