Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Outer joins and null condition in "where" clause

NewbieSep 18 2014 — edited Sep 18 2014

Hi Folks,

Please help me on this.

Below is my query.

with x as

(select 'a' as col1 from dual union all

select 'b' as col1 from dual union all

select 'c' as col1 from dual

),

y as

(

select 'b' as col2 from dual union all

select 'c' as col2 from dual union all

select 'd' as col2 from dual union all

select 'e' as col2 from dual

)

select * from x right outer join y

on x.col1=y.col2 and y.col2 is null

Am getting all rows of "COL1" as null. why like this?

This post has been answered by Moazzam on Sep 18 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2014
Added on Sep 18 2014
5 comments
918 views