I'm using LINQPad to evaluate my linq query. My query goes like this:
from o in MyTableFirst
join p in MyTableSecond on o.TheName equals p.TheName
where p.TheName == "CBA-123" && !p.Removed &&
(o.ReturnPeriod ==100 || o.ReturnPeriod ==10)
select new {
HMax1 = o.MaxValue1,
HMax2 = o.MaxValue2,
HMax3 = o.MaxValue3
}
This query can return 0 or some number of rows.
In LINQPad, it return me something like this:
HMax1 HMax2 HMax3
21.1 null 22.5
null 24.6 11.5
Now, how am I going to get the Maximum value out for these return rows & columns?
I'm expecting return of 24.6.
Thank You
MyTableFirstlook like? and what is the type ofo.MaxValue1?