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: LEFT JOIN ON INNER JOIN using Oracle 8i

Re: LEFT JOIN ON INNER JOIN using Oracle 8i

From: damorgan <dan.morgan_at_ci.seattle.wa.us>
Date: Mon, 04 Mar 2002 18:24:38 GMT
Message-ID: <3C83BBED.9CB4AEBE@ci.seattle.wa.us>


Create the BC part using an in-line view and then join A to that.

Daniel Morgan

Donnchadh Ó Donnabháin wrote:

> Hi there,
> Could anyone explain how to do a left join on an inner join.
> I have three tables A,B,C. I want to do the following using
> the oracle syntax:
> SELECT * FROM A LEFT OUTER JOIN
> (B INNER JOIN C ON B.FKC = C.PKC AND C.FIELDA 'somevalue')
> ON A.PKA = B.FKA
>
> This doesn't work:
> SELECT * FROM A, B, C
> WHERE
> C.PKC = B.FKC
> AND A.PKA = B.FKA(+)
> AND C.FIELDA='somevalue'
>
> Donnchadh
Received on Mon Mar 04 2002 - 12:24:38 CST

Original text of this message

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