This is a query I created from invdat
SELECT ICSHIPD.FMTITEMNO, ICSHIPD.ITEMDESC, ICSHIPD.SHIPQTY, ICSHIPD.STOCKUNIT, ICSHIPD.UNITCOST, ICSHIPD.SHIPCOST, ICSHIPD.ICACCT, ICSHIPH.FISCYEAR, ICSHIPH.FISCPERIOD, ICSHIPH.CUSTNO, ICSHIPH.CUSTNAME, ICSHIPD.EXPRICEHM FROM ICSHIPD ICSHIPD, ICSHIPH ICSHIPH WHERE ICSHIPD.DAYENDSEQ = ICSHIPH.DAYENDSEQ AND ICSHIPD.TRANSSEQ = ICSHIPH.TRANSSEQ AND ((ICSHIPH.FISCYEAR='2007') AND (ICSHIPH.FISCPERIOD=5)) ORDER BY ICSHIPH.CUSTNO, ICSHIPD.ICACCT, ICSHIPD.ITEMDESC
Each customer orders each product about 20 times per period, how can I get the query to select the itemdesc only once for each customer and summarize the shipqty and the shipcost for that particular itemdesc
Thanks in advance for your assistance.
SELECT ICSHIPD.FMTITEMNO, ICSHIPD.ITEMDESC, ICSHIPD.SHIPQTY, ICSHIPD.STOCKUNIT, ICSHIPD.UNITCOST, ICSHIPD.SHIPCOST, ICSHIPD.ICACCT, ICSHIPH.FISCYEAR, ICSHIPH.FISCPERIOD, ICSHIPH.CUSTNO, ICSHIPH.CUSTNAME, ICSHIPD.EXPRICEHM FROM ICSHIPD ICSHIPD, ICSHIPH ICSHIPH WHERE ICSHIPD.DAYENDSEQ = ICSHIPH.DAYENDSEQ AND ICSHIPD.TRANSSEQ = ICSHIPH.TRANSSEQ AND ((ICSHIPH.FISCYEAR='2007') AND (ICSHIPH.FISCPERIOD=5)) ORDER BY ICSHIPH.CUSTNO, ICSHIPD.ICACCT, ICSHIPD.ITEMDESC
Each customer orders each product about 20 times per period, how can I get the query to select the itemdesc only once for each customer and summarize the shipqty and the shipcost for that particular itemdesc
Thanks in advance for your assistance.