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: Left join bug?

Re: Left join bug?

From: Cristian Cudizio <cristian.cudizio_at_yahoo.it>
Date: Fri, 03 Aug 2007 06:08:51 -0700
Message-ID: <1186146531.279914.22540@l70g2000hse.googlegroups.com>


On Aug 3, 1:10 pm, joe <fischauto..._at_yahoo.de> wrote:
> Hi,
>
> create table a (num integer)
> create table b (num integer)
>
> insert into a values (1)
> insert into b values (2)
>
> select * from a left join b
> on b.num = 123
> where a.num = 1 and b.num is null
>
> MySQL & Oracle 10i show the following result:
> 1 null
>
> Oracle 9.2.0.1 shows:
> Empty result set
>
> Is this a bug of Oracle 9,2.0.1?
> Any workaround?

I think that is only a different behaviour on a condition not defined. It seems to me that "b.num =123 " has no sense as join condition so optimizer as changed behaviour but in my opinion it is not possible to say this is a bug

regards

--
Cristian Cudizio

http://oracledb.wordpress.com
http://cristiancudizio.wordpress.com
Received on Fri Aug 03 2007 - 08:08:51 CDT

Original text of this message

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