Using Linq is possible for joining 3 data table. Please find the below sample query.
(from a in Company1 join b in Company2 on a (“EMPId”).Tostring() equals b (“EMPId”).Tostring() join c in Company3 on c.(“EMPId”).Tostring() equals b.(“EMPId”).Tostring()) select a)
I have two datatables with huge volume of data around 2 Lakhs (Min) in datatable 2 and around 1 lakh data in datatable 1. I need to compare three columns in two datatables , if all the values in two datatable matches, (account) column value from datatable 2 needs to be updated in the account column in datatable 1.Since the query is wrote is taking too much time. Help me to find a solution for this.
Hello, I tried this code but it threw several errors. The there are periods between letters (b.("EMPId) in two cases but not others. Also, there seems to be an extra “)” after the last Tostring()). Wanted this to work but haven’t figured out what is the issue