Hi am attempting to create a stock database for work. i have created a query called TotalStaffOrder s and a query called TotalStockOrder s this gives me the total of each item that has been ordered either for stock or staff. It displays total, StockDesc and Size. What i am attempting to do is subtract the totals from the staff table from the stock table where the descriptions are the same. Below is my attempt it does subtract but it subtracts from each value of the stock table.
Thanks for your help
Thanks for your help
Code:
SELECT [SumOfSSQuantity]-[SumOfQuantity] AS [Total Left], TotalStockOrders.StockDesc, TotalStockOrders.Size FROM TotalStaffOrders, TotalStockOrders GROUP BY [SumOfSSQuantity]-[SumOfQuantity], TotalStockOrders.StockDesc, TotalStockOrders.Size;
Comment