You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blto...@googlegroups.com
How write this SQL query on BlTollkit LINQ?
select
c.CategoryId,
c.CategoryName,
Count(*) as c1,
Sum(p.UnitsInStock) as s1
from Products p
inner join Categories c on p.CategoryID=c.CategoryID
where SupplierID = 1
group by c.CategoryId, c.CategoryName
Сергей Кутузов
unread,
Mar 26, 2014, 6:29:44 PM3/26/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blto...@googlegroups.com
var query =
from p in db.Product
where p.SupplierID==1
group p by p.Category.CategoryName
into g
select new
{
CategoryName = g.Key,
Count = g.Count(),
TotalStock = g.Sum(item=>item.UnitsInStock)
};
среда, 26 марта 2014 г., 9:33:44 UTC+11 пользователь Сергей Кутузов написал: