Good day,
Anyone to assist me in optimising the query below or suggest to me an efficient way to remove matching records from two different datatables. The below Linq query is taking 60 minutes for 50 000 transactions
Correct me if I’m wrong, but you want to get a result with rows for which column 6 and 7 matches exactly one row in datatable2, right?
So for every row in dt1, you count the rows with the same values in column 6 and 7 in dt2 and if it’s only one row, it should be added to your result table.