Merge Data Tables

Hey!

I Have two Data Tables with the Columns:

DT1:
Event, Date

DT2:
Date

So now my Two Databases looks like this:

DT1:

Event,Date ← Column
Event1,
Event2,
Event3,

DT2:

Date ← Column
Date1,
Date2,
Date3,

So Now i want to Merge this Two Databases to look like this:

Event,Date
Event1,Date1
Event2,Date2
Event3,Date3

How do i do this???

it is a side by side merge case:

@Beere_Plays
For Each Row and create an index variable for the For Each loop. Change the Assign to:

CurrentRow("Date") = dt2(index)("Date").Tostring

Note: This only works if both dt1 and dt2 has the same number of rows.


(Pic is just help with different same scenario)

@Beere_Plays

If the order and number of rows are same…then you can directly do a add data column on dt1 with column as dt2.Columns(“date”)

Cheers

Hi @Beere_Plays

Check this below attached workflow,
Uipath_MergeDataTables.xaml (9.9 KB)

Hope this might help you :slight_smile: