[LINQ] - Remove Duplicate Rows with Multiple Unique Identifier Columns from Multiple Data Table

not sure if this question was get and answered by you. Let me rephrase:

Your sample had not the case that table1 has a rows which is duplicated in Table3. Could this scenario also happen?

However to preview on solution approaches (when split tables are to kept)

  • loop over the tables and track the IDs in a Dictionary as unique Keys - dictLKID
  • retrieve IDs from checked table, calculate the duplicated IDs by using the dictLKID and remove the duplicated rows

The reason why we suggest this Dictionary approach is the outcome from another Topic where we reduced the processing time from 24+ hrs to seconds

1 Like