Una query linq più complessa :
Dim categories = From prod In products _
Group prod By prod.Category _
Into PrezzoPiuEconomico = Min(prod.UnitPrice) _
Select Category, PrezzoPiuEconomico
O
Dim categories = From prod In products _
Group prod By prod.Category _
Into Prods = Group, minPrice = Min(prod.UnitPrice) _
Let CheapestProducts = (From p In Prods _
Where p.UnitPrice = minPrice) _
Select Category, CheapestProducts