Home » RDBMS Server » Server Administration » outer join in an or statement
outer join in an or statement [message #374865] Mon, 09 July 2001 01:08 Go to next message
Esah
Messages: 1
Registered: July 2001
Junior Member
How do I insert a statement for an outer join in a select statement that has OR condition?
Re: outer join in an or statement [message #374866 is a reply to message #374865] Mon, 09 July 2001 04:03 Go to previous message
murarishettysrinivas
Messages: 9
Registered: July 2001
Junior Member
when ur having an outer join and have more than one condition we should have that (+) sign for all the conditions.
try out the following.

select x.ename,y.ename,z.ename
from emp x,emp y,emp z
where x.empno = y.mgr (+)
and y.empno = z.mgr (+)

or

select x.ename,y.ename,z.ename
from emp x,emp y,emp z
where x.empno = y.mgr (+)
or y.empno = z.mgr (+)
Previous Topic: configuring the COntext Option in oracle
Next Topic: What is the purpose of variable size at instance startup?
Goto Forum:
  


Current Time: Sat Jul 06 17:54:21 CDT 2024