Hi Anupam,
I have doubts about your results and conclusion:
On second SQL you introduced a filter on secondary table restricting only for NOT found records. If they match it's not listed.
On third SQL perhaps you find NO entries that can be linked.
What is the result of INNER JOIN for second SQL:
select count(*) from "SRC"."TABLE" O inner join "SRC"."TABLE_1" A on O.Dept_Id=A.Row_Id
| where o.effective_end_dt is null; | |
|
What is the result without filtering second table?
select count(*) from "SRC"."TABLE" O left outer join "SRC"."TABLE_1" A on O.Dept_Id=A.Row_Id
| where o.effective_end_dt is null; |
Regards, Fernando Da Rós