I got this assign command on my workflow and I just cant figure out how to add here a second column. Now it only compares the datatables with the column “Name” and I want it to compare those with “Name” and “Phone number”.
Anyone have a good ideas what should be the proper way to add here the second column?
(From x In dt1.AsEnumerable() where (From a In dt1.AsEnumerable() Join b In dt2.AsEnumerable() On a(“Name”).ToString() Equals b(“Name”).ToString() select a).Contains(x) select x).CopyToDataTable()
I’m not an expert, but does it let you use the AND operator?
(From x In dt1.AsEnumerable() where (From a In dt1.AsEnumerable() Join b In dt2.AsEnumerable() On a(“Name”).ToString() Equals b(“Name”).ToString() And a(“Phone Number”).ToString() Equals b(“Phone Number”).ToString() select a).Contains(x) select x).CopyToDataTable()