cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Hana Studio Join Node many to many

former_member733502
Discoverer
0 Kudos

Good afternoon,

I am working with SAP Hana Studio JOIN nodes.

I have two tables which I want to OUTER JOIN:

Table A

CASE_GUID USER
1 A
2 A   

Table B

LANGU
S
E  

The result should be the result of crossing each value in table A with each value in table B:

CASE_GUID USER LANGU
1 A E
2 A E
3 B E
1 A S
2 A S
3 B S   

I am trying to do this with the JOIN node with the Outer Join join type.

And I am getting this result:

CASE_GUID USER LANGU
1 A ?
2 A ?
3 B ?
? ? E
? ? S 

How should I achieve this result working with the HANA Studio nodes?

Thank you so much!

Accepted Solutions (1)

Accepted Solutions (1)

former_member733502
Discoverer
0 Kudos

Good morning,

I solved the issue by not selecting the fields through which the join must be done. Just choosing the tables to join but not setting the crossing fields. It can also be done by creating a constant field in each table and outer joining the tables.

Thank you so much!

Abhishek_Hazra
Active Contributor
0 Kudos

that's what is called cross join/referential join, where you don't specify the fields to join on. 🙂

Answers (1)

Answers (1)

Abhishek_Hazra
Active Contributor
0 Kudos

Hi,

You need to use referential join or cross join.

Best Regards,
Abhi