DT 1 has say 193000 rows which are unique. I want to compare this DT1 data with DT2 data and store the matching results in a 3rd table. (DT2 is a huge datatable)
Note - DT2 will have duplicate records of the DT1 records, so I want them as well I want the total count without eliminating any duplicates or data
.
I don’t think Where is very slow. However double loop might be inefficient.
The following post is to leave mismatched rows using sort and single loop. This might help you.
Do you want to compare whole row or specific column?
If former, I think we don’t need to use inner join. If latter, JoinDataTables activity might help you.
One thing here, I don’t want to leave the rows. DT1 has say 100k rows i want to match it in DT2 and retrieve the matched data set and store it in a datatable. Example in DT1 if there are 100k rows it is possible that DT2 might have matching 110k rows which include duplicate. I want to retrieve that set.