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 outer join

Re: left outer join

From: DA Morgan <damorgan_at_exesolutions.com>
Date: Fri, 07 Feb 2003 12:59:18 -0800
Message-ID: <3E441E26.5706DAEC@exesolutions.com>


livanojito wrote:

> Hi guys,
> In Oracle 8.* can I have the following condition while doing a left
> outer join
> where rtrim(t1.c1)=rtrim(t2.c2)(+) becuase I got the message "ERROR
> at line 30:
> ORA-00907: missing right parenthesis" and if I code where
> rtrim(t1.c1)=t2.c2(+) then it works.
>
> Thanks

Amazing but true ...

SELECT *
FROM c1, c2
WHERE RTRIM(t1.c1) = RTRIM(t2.c2 (+));

or

SELECT *
FROM c1, c2
WHERE RTRIM(t1.c1 (+)) = RTRIM(t2.c2);

But I can't explain the logic of the syntax.

Daniel Morgan Received on Fri Feb 07 2003 - 14:59:18 CST

Original text of this message

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