How to compare two columns in same data table

I want to select rows from datatable if value of two different columns were same.
My data table looks like this

Desired output will be two different datatables. One should contains all the matched one and another data table should should contain unmatched ones

Matched (Name1=Name2)

Unmatched (Name1≠ Name2)

Please help me to solve this. Its bit urgent.

give a try on following:

Use Assign activity
Left side: dtFiltered
Right side:

(From d in YourDataTableVar.AsEnumerable
Where Not d(0).toString.Trim.Equals( d(1).toString.Trim)
Select d).CopyToDataTable

For getting the rows where bith names are the same use:

(From d in YourDataTableVar.AsEnumerable
Where d(0).toString.Trim.Equals( d(1).toString.Trim)
Select d).CopyToDataTable

Handling the empty result can be done with following pattern:

Thanks for such a quick response.

I am able to complete the first portion. But unable to understand the “Handling the empty result” portion. It will really be helpful if you please share the workflow.

Thanks in advance.