Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Query on joins

$
0
0

Hi,

 

I am going through joins in information views and have small doubts.

 

Sorry for asking such basic questions once again but I am not still satisfied with the results searched on SCN.

 

Consider below tables.

 

Test1:

 

Matnrtext
100abc
200def
300ghi
400jkl
500mno

 

 

Test10:

 

Matnrtext_alt
100abc
100def
100ghi
300jkl
300mno
300abc
400def
400ghi

 

Here are my questions:

 

Attribute view:

 

a.) When I am doing inner join or referential join ,I get the same result as below. I haven't selected any column from right table but results are same          for both joins. Why? Referential join should act as left outer join as per concept. Please let me know the reason.

 

Analytical join: 

 

b.) When  I am using inner join in analytical view I am getting below output. Its deleting duplicates for MATNR which I think it should not.

     Please let me know the reason.

 

Matnr          Text

 

100             abc

 

300             ghi

 

400             jkl

 

I think output should be as below. And I can see in left outer or right outer join , its behaving same as above, deleting duplicated based on MATNR.

 

Please clarify.

 

join2.png

c.) Calculation View:

 

Why we don't have referential join in calculation view? Any specific reason?

 

Also I have noticed one thing, when I applied filter on right side table in inner join or referential join, it gives me correct result , but when i go through posts on SCN, its written referential join will not work with filters. I am confused , please clarify.

 

BR

Sumeet


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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