If you execute the following:
select * from dual where dummy(+) in (1,2,3);
you get the following error:
ERROR at line 1: ORA-01719: outer join operator (+) not allowed in operand of OR or IN
However, in Oracle 9i and above you can overcome this restriction by using the ANSI SQL syntax. For example:
select ename, dname
from emp left outer join dept on
( emp.deptno = dept.deptno OR emp.empno = 55 );
will not generate the ORA-01719 error.
View the original AskTom discussion about this subject.
Possibly related:
- SQL Joins as Seen on a Diagram
- Did You Know This About Outer Joins in Oracle?
- Back to basics: outer joins
- Give Me One Minute And I’ll Tell You If You Are Liberal Or Conservative
- Back to basics: cross joins
Tagged join, sql | Post a Comment


















Home > About This Post
This entry was posted by Eddie Awad on Friday, July 1st, 2005, at 10:27 am, and was filed in Oracle, Tips.
Subscribe to the
RSS 2.0 feed for all comments to this post.
Post a Comment