Get the Matching rows When DT1 compared to DT2

Hi,

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.

Regards,