on 01-09-2014 7:43 AM
Hi SAP HANA Artifacts
How can i apply Join condition Using CE Functions having columns with 2 different Column names
EMPLOYEE1
EID | ENAME | ESAL |
---|---|---|
E11 | SRI | 100000 |
E12 | NIVAS | 20000 |
EMPLOYEE2
EMPID | DEPT |
---|---|
E11 | TECHNICAL |
E12 | TECHNICAL |
E13 | FINANACE |
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.