H
h3llz
I've got this inside a query, but i want to add a WHERE, which only when
quantity isnt a negative value, (quantity within tblProductsLog can be 10 or
-10). Any suggestions?
SELECT tblProducts.productID, tblProducts.product, tblProducts.price,
tblProducts.staffID, tblProducts.productType, tblProducts.deleted,
Sum(tblProductsLog.quantity) AS quantity, tblProducts.reduction
FROM tblProducts INNER JOIN tblProductsLog ON tblProducts.productID =
tblProductsLog.productID
GROUP BY tblProducts.productID, tblProducts.product, tblProducts.price,
tblProducts.staffID, tblProducts.productType, tblProducts.deleted,
tblProducts.reduction
HAVING (((tblProducts.deleted)=No));
quantity isnt a negative value, (quantity within tblProductsLog can be 10 or
-10). Any suggestions?
SELECT tblProducts.productID, tblProducts.product, tblProducts.price,
tblProducts.staffID, tblProducts.productType, tblProducts.deleted,
Sum(tblProductsLog.quantity) AS quantity, tblProducts.reduction
FROM tblProducts INNER JOIN tblProductsLog ON tblProducts.productID =
tblProductsLog.productID
GROUP BY tblProducts.productID, tblProducts.product, tblProducts.price,
tblProducts.staffID, tblProducts.productType, tblProducts.deleted,
tblProducts.reduction
HAVING (((tblProducts.deleted)=No));