Extract the missing rows in a table by comparing it with an existing table


From the two tables , I want to compare the blue table with the yellow one and extract the missing rows. How to do that?

@vidyasak

You can try this

dt1.AsEnumerable.except(Dt2.AsEnumerable,system.data.datarowcomparer.default).CopyToDataTable

Here dt1 is the yellow datatable

And dt2 is the blue datatable

Thanks Shiva. It worked. :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.