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

Home -> Community -> Usenet -> c.d.o.server -> Re: FULL JOIN syntax vs (+)

Re: FULL JOIN syntax vs (+)

From: Noel <tbal_at_go2.pl>
Date: Thu, 13 Nov 2003 16:42:22 -0000
Message-ID: <bp08l9$bop$1@inews.gazeta.pl>

Użytkownik "Jonathan Lewis" <jonathan_at_jlcomp.demon.co.uk> napisał w wiadomości news:bou7gl$d7c$1$830fa78d_at_news.demon.co.uk...
>
> I think this is the correct starting point:
>
>
> select {list of column}
> from
> a, b
> where
> b.id(+) = a.id -- preserve A
> union all
> select {list of columns}
> from
> b,1
> where
> a.id(+) = b.id -- preserve B
> and a.id is null -- discard inner join result
> ;

You sure that 'union all' doesn't duplicate rows in query results when a.id = b.id ???
I prefer simple 'union' in this example.

--
Noel
Received on Thu Nov 13 2003 - 10:42:22 CST

Original text of this message

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