Scenario: I have a table which has a self join. But i donot want the query to fail if it doesnot find a match on the value in the join and so i make it as an outer join. But BO doesnot allow me to use this kind of a join. It is showing an error Exception: DBD, ORA-25156: old style outer join (+) cannot be used with ANSI joins
State: N/A
The join is as follows: T1.OCCUPATION_CODE(+) = ‘CODE3’
Since it is ANSI92 syntax, outer joins between any 2 tables are ending up in the From clause of the query which is normal. But for the kind of self restricting outer joins i mentioned above, how do we solve?
(PS_ACAD_PLAN_OWNER.EFFDT = (
SELECT MAX (B.EFFDT)
FROM PS_ACAD_PLAN_OWNER B
WHERE PS_ACAD_PLAN_OWNER.ACAD_PLAN = B.ACAD_PLAN
AND B.EFFDT<=SYSDATE)) or PS_ACAD_PLAN_OWNER.ACAD_PLAN IS NULL