Simple LINQ Aggregate Query
Posted
by Steven
on Stack Overflow
See other posts from Stack Overflow
or by Steven
Published on 2010-03-14T20:05:44Z
Indexed on
2010/03/14
20:25 UTC
Read the original article
Hit count: 563
What is the vb.net equivalent of the following psuedo-code using LINQ?
select min(credits) minCredits, max(credits) maxCredits,
min(dollars) minDollars, max(dollars) maxDollars
from players
minCredits_lbl.Text = minCredits
...
maxDollars_lbl.Text = maxDollars
I have the following, but I can't figure out how to get any further.
Dim query = From row in myDataSet.Tables("Players") _
Select credits = row("credits"), dollars = row("dollars")
© Stack Overflow or respective owner