Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

HANA Table Join

$
0
0

Hi Experts,

I've the requirement to join 2 tables and come up with N:N possible combinations. Find below example:

 

Table1 has Field1 with below values

 

A

B

C

 

Table 2 has field 2 with below values:

1

2

3

 

I need output table which will show the data as below

 

Field1     Field2

A               1

A               2    

A               3    

B               1

B               2    

B               3 

C               1

C               2    

C               3 

 

I know the solution using CURSOR -> FOR.. END FOR. Is there any other effective way of achieving the same.

 

Thanks,

Milind


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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