cancel
Showing results for 
Search instead for 
Did you mean: 

Join Condition

SrinivasReddy
Participant
0 Kudos

Hi SAP HANA Artifacts

How can i apply Join condition Using CE Functions having columns with 2 different Column names

EMPLOYEE1

EIDENAMEESAL
E11SRI100000
E12NIVAS20000

EMPLOYEE2

EMPIDDEPT
E11TECHNICAL
E12TECHNICAL
E13FINANACE

EMP1 = CE_COLUMN_TABLE(EMPLOYEE1,[EID,ENAME,ESAL]);

EMP2=CE_COLUMN_TABLE(EMPLOYEE2,[EMPID,DEPT]);

var_out = CE_JOIN(:EMP1,:EMP2,[.....................],[.......]);

Thanks in Advance

Regards

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

former_member185165
Active Participant
0 Kudos

Hi Srinivas,

Use projection before join and change the name of the field using alias.

Emp1 = CE_PROJECTION(:EMP1,["EID" AS "EMPID", "ENAME","ESAL"]);

And then use the join.

var_out = CE_JOIN(:EMP1,:EMP2,["EMPID"]<field1>,<field2>..);

Regards,

Vijay

justin_molenaur2
Contributor
0 Kudos

I would second that approach, all you need to do is alias one of the columns to make the join. A projection will certainly do that for you.

Regards,

Justin

SrinivasReddy
Participant
0 Kudos

Thanks You Justin

SrinivasReddy
Participant
0 Kudos

Thank you Vijay

former_member185165
Active Participant
0 Kudos

Hi Srinivas,

Please close the thread, so that it will be helpful for others to filter out from unanswered questions.

Regards,

Vijay

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Srinivasalu Reddy,

Please do close the thread by choosing the answer given by VIJAYKUMAR as the "CORRECT ANSWER". It's  nice to appreciate ones effort and time.

Thanks and Best Regards

Mesh