Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: full outer join in oracle 8.1.7 ?

Re: full outer join in oracle 8.1.7 ?

From: Andreas <anonmeg_at_start.no>
Date: Wed, 03 Mar 2004 01:49:49 +0100
Message-ID: <MY91c.2942$EV2.8871@amstwist00>


andy vandenberghe wrote:
> hi,
>
> i'm trying the following query on Oracle 8.1.7
>
> select a.im, a.p1, b.p2
> from
> (select dim2 as im, amount as p1 from aagirep2a where period='200302'
> and dim1='700000') a,
> (select dim2 as im, amount as p2 from aagirep2a where period='200402'
> and dim1='700000') b
> where a.im=b.im (+)
>
> this takes all rows in a even if there's no match in b (right join)
> but i want also the rows in b with no match in a (left join)
>
> How do i do that ? I cannot do a full outer join in Oracle 8.1.7 afaik
>
> Regards,
> Andy

UNION between two outer joins... Received on Tue Mar 02 2004 - 18:49:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US