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: HELP! Oracle Won't Let Me Outer Join...

Re: HELP! Oracle Won't Let Me Outer Join...

From: John Russell <netnews2_at_johnrussell.mailshell.com>
Date: Thu, 11 Apr 2002 16:59:07 GMT
Message-ID: <p0gbbuse63fqr0jo34co6uea7atcushbos@4ax.com>


>contrapositive wrote:
>
>> Hi. I have a query that looks something like this...
>>
>> SELECT ...
>> FROM
>> ORDER_HEADERS h,
>> ORDER_DETAILS d,
>> ...,
>> INVOICES i
>> WHERE ...
>> AND
>> decode(sign(d.TOTAL_PRICE), -1, 'C', 'D') --'C'redit/'D'ebit
>> ||
>> h.ORDER_NUMBER
>> = i.INVOICE_NUMBER(+)
>>
>> So I need to outer join on INVOICES, but I get the "table may be outer
>> joined to only one other table" error. I didn't realize this error
>> also applies to concatenation.

I ran into a problem similar to this, turned out the solution was to put (+) after both of the pieces being concatenated.

John

--
Got an Oracle database question?
Try the search engine for the database docs at:
http://tahiti.oracle.com/
Received on Thu Apr 11 2002 - 11:59:07 CDT

Original text of this message

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