sql - use of outer joins in where clause if the value is defaulted -


in clause used column_name(+)=some value, use of right outer join column

ex: deptno(+)=30 

please explain

thanks

ex: deptno(+)=30

without other table join meaningless.

the join against constant involves join event in constant being compared 1 of columns. error outer-join must include outer-join construct in constant test. without it, join can fail complete row. pervasive miscoding of outer-join because behavior of constant test when considered part of join event of outer-join different behavior when stands alone. have included sample of behavior difference 2 seemingly semantically equivalent queries not equivalent because 1 uses true join , 1 not. point being outer-join constructs give meaning when being used in join. solution have seen, code missing outer-join constructs.

see common errors seen when using outer-join

your query valid this:

select <column_list>   t1,         t2  t1.c1 = t2.c1(+) ,    t1.c2(+) = ‘y’;  

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -