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).
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.
With your requirement, could you please have a look at tMap component in talend?
Let us know if it is OK with you.
@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.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema