Hi, I have a problem when using LINQ to join 2 datatables
DT1:
DT2:
I joined them with script below:
(From a In dt1.AsEnumerable
Group Join b In dt2.AsEnumerable
On a(“number”).ToString Equals b(“number”).ToString
Into gj = Group
From g In gj.DefaultIfEmpty
Let result = New Object(){a.Field(Of Double)(“number”),g.Field(Of String)(“value”)}
Select dt3.Rows.Add(result)).CopyToDatatable
Result => which I need:
Result from robot => contains too many duplicate row
Anyone please help me fix this issue. Thank you in advance.