Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Why LEFT OUTER JOIN returning less records in SAP HANA?

$
0
0

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


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>