Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3585

Re: HANA Table Join

$
0
0

Hi Milind,

 

Please check below solution for your problem.

 

Step 1 : Create tables in SAP HANA.

 

Create column table TBL_A ("NAME" Varchar(1));

Create column table TBL_1 ("VALUE" tinyint);

 

Step 2 : Insert values in abovementioned tables.

insert into TBL_A values('A');

insert into TBL_A values ('B');

insert into TBL_A values ('C');

 

insert into TBL_1 values(1);

insert into TBL_1 values (2);

insert into TBL_1 values (3);

 

Now, you  will notice that, we don't have common column(s) to make join and get desired output in SAP HANA modeling.

 

Modeling

imahe_1.PNG

 

Step 3 :

Add two aggregation node and try to place respective tables in it.

 

Aggregation_ 1 :  Try to create DUMMY as a calculated column

image_2.PNG

 

Aggregation_2 : Try to create DUMMY as a calculated column

image_3.PNG

 

Step 4 : Please add '1' as a value in DUMMY column as per below image

image_4.PNG

 

Step 5 : create Inner join on DUMMY column

image_5.PNG

Step 6 : As, I have taken both fields as a attribute in final node. I have created counter for measure.

image_6.PNG

 

Step 7 : Activate your view and see the final output.

image_7.PNG

You can skip counter column, if you don't want.

 

I hope, this will solve your problem.

 

Regards,

Vikram Divekar


Viewing all articles
Browse latest Browse all 3585

Trending Articles



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