Hi All,
How to compare two dt.
Ex dt1 contain 10 column
Dt2 contain 11 column .
If matching item in dt1 is present in dt2 then ,insert “match” in column 11.if not match then unmatch should be entered.
All 10 column name are same.
Hi All,
How to compare two dt.
Ex dt1 contain 10 column
Dt2 contain 11 column .
If matching item in dt1 is present in dt2 then ,insert “match” in column 11.if not match then unmatch should be entered.
All 10 column name are same.
Please find the xaml file for excel , this will help for solving your problem
Main.xaml (12.8 KB) Test_2.xlsx (9.7 KB)
thanks Sanjay, but i am not master in coding so
2)how do i write match/unmatch(in new column) in dt2(sheet 2)
@Palaniyappan can you give your suggestion on my requirements
Hi @TUSHAR_DIWASE,
1.You can use for each row activity,2 for each row activities one inside the other one.
2.Keep one of the data table in outside loop and other in inside loop.
3.Check for the condition in inside loop.
4. If matches then keep like this
dt2row(“columnName”)=“matches”
thanks for reply. but if i have 10 or more column then i have to include all 10 column in if condition .
i was wondering is their any other way
This means it will compare both the table(dt1 and dt2) and give you result what is missing in dt2 table, You can take refrence from excel i have attached.
2.You can use merge datatable,Please go throw this link
Hi @TUSHAR_DIWASE,
You have already found an elegant solution from the uipath masters, along with that please check following approach.
However, Using Linq queries would be one of my recommendation.
Thanks
Sukesh V
testTable:2 columns testTable2:3 columns
Here is a detailed article on that
Regards,