Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm new in talend. I have a very urgent problem. So, i wanna merge two tables. For example:
Table T1 with columns A, B, C, D and n1 rows
Table T2 with columns A, B, E, F and n2 rows.
Ps: My tables T1 and T2 have not the same numbers of rows (n1>n2).
A: nominal
B: Date column
C, D, E and F are integers columns.
I would like to have a final table T with columns A, B, C , D, E, F and if the values of colums A, B in table with less rows (T2) are not in the second table (T1) to replace the values of the two next columns (E, F) by sero.
Thanks in advance for your help.
Best regards
Hello,
With your requirement, could you please have a look at tMap component in talend?
Here are related articles about:TalendHelpCenter:tMap and TalendHelpCenter:tMap scenarios.
Let us know if it is OK with you.
Best regards
Sabrina
@medfand,read the two tables and take two tmap and create a required columns in first tmap with default values E,F and second one with C,D and connect two tmaps to tUnite and then connect tUnite to table output.
@medfand,still do you have issue?