SELECT Product.Name, SUM(Product.Quantity) AS Balance, SUM(Income.IncomeQuantity) AS income, SUM(ProductLog.Quantity) as sold FROM Income INNER JOIN Product ON Income.ProductID = Product.ID INNER JOIN ProductLog ON Product.ID = ProductLog.ProductID GROUP BY Name
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)