I have the following query looking at two data tables
(From a In dtUniqueNamesEmails
Group Join b In dtADRecords
On a(“EmailAddress”).ToString Equals b(“EmailAddress”).ToString Into grp = Group
From g In grp.DefaultIfEmpty
Select dtUniqueNamesEmailsAD.Rows.Add({a(“DisplayName”),a(“EmailAddress”),a(“CreatedOn”),a(“LastUpdated”),a(“LastLogin”),If(IsNothing(g),Nothing,g(“SAMAccountName”))})).CopyToDataTable
Regrettably, it does not bring back every record it should and is missing a couple of records from the second table
I have confirmed this by outputting the two data tables to Excel and manually running a VLOOKUP when everything is returned correctly.
Anybody any ideas why it may be missing a couple of records
Thx