Hello
using the following query to get qty SOLD for 2009:
and the following to get RETURNS for 2009:
my question, ca these 2 qyeries be combined into one to get the NET (SOLD less RETURNS) by ITEM ????
using the following query to get qty SOLD for 2009:
Code:
SELECT OEINVD.ITEM, Sum(OEINVD.QTYSHIPPED) AS SUMSOLD
FROM OEINVH INNER JOIN OEINVD ON OEINVH.INVUNIQ = OEINVD.INVUNIQ
GROUP BY OEINVD.ITEM, OEINVH.INVFISCYR
HAVING (((OEINVH.INVFISCYR)="2009"));
and the following to get RETURNS for 2009:
Code:
SELECT OECRDD.ITEM, SUM(OECRDD.QTYRETURN) AS RETURNS
FROM OECRDH INNER JOIN OECRDD ON OECRDH.CRDUNIQ = OECRDD.CRDUNIQ
WHERE (((OECRDH.INVFISCYR)="2009"))
GROUP BY OECRDD.ITEM
my question, ca these 2 qyeries be combined into one to get the NET (SOLD less RETURNS) by ITEM ????