Hi, i have a couple of linq queries which I wanted to join
var IDs = from p in ctx.bam_Zending_AllInstances
where p.Zender == "RT30"
select new { Identificatie = p.Identificatie };
var latestIDs = from p in ctx.bam_Zending_AllInstances
where p.Zender == "RT30"
group p by p.Identificatie into q
select new { Identificatie = q.Key, Datum = q.Max(p => p.PrestatieOntvangen) };
var final = from p in IDs
join q in latestIDs on p.Identificatie equals q.Identificatie
select new { Identificatie = p.Identificatie };
The problem is. If I look at the results, the IDs have 308 items, the latestIDs have 304 items, but the final one also has 308 items. How is this possible? I thought a join in linq was an inner join. I need to have 304 items, but instead it does an outer join.
What am I doing wrong?