Hi I have multiple data table, in which all the datatables have a common column in it(lets say ID).I want to merge all and get it in a separate data table.
example -
DT1 :-
Id , Name:
11 , A
12, B
13, C
DT2 :-
Id , Country:
11 , Australia
12, Brazil
14, Canada
DT3 :-
Id , age:
11 , 23
13, 34
14, 27
Expexted result-
DT4 :-
Id , Name,Country,age:
11 , A, Australia, 23
12, B, Brazil
13, C, , 34
14, ,Canada, 27
Read Data: Use the “Read Range” activity to read data from each of your input files into separate tables (DT1, DT2, DT3).
Merge Tables: Combine DT1 and DT2 based on the “Id” column using the “Join Data Table” activity. The result will be stored in a new table called DT4.
Merge with Third Table: Merge DT4 with DT3 based on the “Id” column again using the “Join Data Table” activity. This will further extend the information in DT4.
Update Age:Go through each row in DT4. If an “Id” in DT4 matches an “Id” in DT3, update the “age” column in DT4 with the corresponding “age” value from DT3.
You can use the Join datatable activity for this type to merge the datatable to one.
In three datatables, there is a one column which is column by taking the reference of that column you can use the Join datatable activity which joins to one datatable.
=> First Use join datatable for dt1 and dt2. which gives Datatable1.
=> Second Use join datatable for Datatable1 and dt3 which gives the dt4.