Thanks for the question, Rajendra.
Asked: February 12, 2019 - 1:48 pm UTC
Last updated: February 12, 2019 - 3:07 pm UTC
Version: Oracle 11g
Viewed 1000+ times
select * from table1 left outer join table2 on table1.id = table2.id and table1.name = table2.name left outer join table3 on table1.id = table3.id and table1.name = table3.name
select * from table1 left outer join table2 on table1.id = table2.id and table1.name = table2.name left outer join table3 on table1.id = table2.id and table1.name = table3.name
create table t1 ( c1 int ); create table t2 ( c2 int ); create table t3 ( c3 int ); insert into t1 values ( 1 ); insert into t1 values ( 2 ); insert into t1 values ( 3 ); insert into t2 values ( 1 ); insert into t2 values ( 2 ); insert into t3 values ( 1 ); insert into t3 values ( 4 ); commit; select * from t1 left outer join t2 on t1.c1 = t2.c2 left outer join t3 on t1.c1 = t3.c3; C1 C2 C3 1 1 1 2 2 <null> 3 <null> <null> select * from t1 left outer join t2 on t1.c1 = t2.c2 left outer join t3 on t1.c1 = t2.c2; C1 C2 C3 1 1 1 1 1 4 2 2 1 2 2 4 3 <null> <null>
Rajendra Kalepu, February 13, 2019 - 6:35 am UTC
The Oracle documentation contains a complete SQL reference.