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: ANSI joins not working...

Re: ANSI joins not working...

From: Matthias Kleinicke <Matthias.Kleinicke_at_gmx.de>
Date: Wed, 15 Jun 2005 23:35:31 +0200
Message-ID: <d8q6kq$uqa$1@online.de>


Hello Peter,

Peter wrote:

> Thanks everyone for the effort put into this. David Portas' response,
>
> select p.PORTFOLIO_CODE, h.HOLDING_NUMBER_SHARES
> from PORTFOLIO_MASTER p left outer join PORTFOLIO_HOLDINGS h
> on p.PORTFOLIO_CODE = h.PORTFOLIO_CODE
> and h.INSTRUMENT_CODE = 'AFI'
>
> does what I was looking for, and I can see why, though I thought part
> of the point of the ANSI syntax was to separate join conditions from
> filters, which this doesn't do. Still, if that's what it takes...
>

but INSTRUMENTAL_CODE = 'AFI' is a join condition; especial in case of outer join. A filter would apply to the join result, as seen in OP.

greetings Matthias Received on Wed Jun 15 2005 - 16:35:31 CDT

Original text of this message

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