Oracle Logbook

May 1, 2012

How to overcome outer joins boundaries.

Filed under: Uncategorized — heliodias @ 6:49 am

Once in a while, you need to use outer joins and you face some limitations regarding semi-joins or something else.

The solution is not elegant, but is quite simple indeed.

Create your own “outer join”,  which means instead of join straight to the desired table, create a union between the desirable table and the original table (discarding the duplicate by using an anti-join (not exists /not in)

select,texto from l3_tb1 t1,
select id,texto from l3_tb2
union all
select,” from l3_tb1 t3 where not in (select id from l3_tb2)
t2 where;

Just remember that this solution is more resource intensive than the “real” outer join.



Create a free website or blog at