/*Find All Customer Whose Purchase is Less then 10000 */ var Customer = from c in _NorthWindDataContext.Customers join o in _NorthWindDataContext.Orders on c.CustomerID equals o.CustomerID group c by c.CustomerID into CutGroup where CutGroup.Sum(tab => tab.Orders.Sum(t=> t.Order_Details.Sum(t1 => t1.Quantity * t1.Quantity))) < 10000 select new { CustomerID = CutGroup.Key, Total = CutGroup.Sum(tab => tab.Orders.Sum(t => t.Order_Details.Sum(t1 => t1.Quantity * t1.Quantity))), };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)