hi friends,
i have one query related to oracle9i outer join condition
it is mentioned that we can't use (+) with the operand of OR
and IN operators
example
select e.last_name,e.d epartment_id,d. department_name ,d.department_i d
from employees e , departments d
where e.department_id (+) = d.department_id
or d.department_id = 100
this gives error =>
where e.department_id (+) = d.department_id
*
ERROR at line 3:
ORA-01719: outer join operator (+) not allowed in operand of OR or IN
*************** *************** *************** ****
but this query works fine with the IN operator, i couldn't find the
reson how the following query works perfectly with IN and (+)
operator.
select e.last_name,e.d epartment_id,d. department_name ,d.department_i d
from employees e , departments d
where e.department_id (+) in ( d.department_id )
so friends please help to find reason for this.
i have one query related to oracle9i outer join condition
it is mentioned that we can't use (+) with the operand of OR
and IN operators
example
select e.last_name,e.d epartment_id,d. department_name ,d.department_i d
from employees e , departments d
where e.department_id (+) = d.department_id
or d.department_id = 100
this gives error =>
where e.department_id (+) = d.department_id
*
ERROR at line 3:
ORA-01719: outer join operator (+) not allowed in operand of OR or IN
*************** *************** *************** ****
but this query works fine with the IN operator, i couldn't find the
reson how the following query works perfectly with IN and (+)
operator.
select e.last_name,e.d epartment_id,d. department_name ,d.department_i d
from employees e , departments d
where e.department_id (+) in ( d.department_id )
so friends please help to find reason for this.
Comment