Is there some way to do this:
SELECT (sum(d.cartonsshipped)/m.ctnperskid) AS PalletCount, itemnumber, shipdate
FROM orderdata d
inner join itemmaster m
on d.itemnumber = m.itemnumber
GROUP BY d.itemnumber, d.shipdate
HAVING (sum(d.cartonsshipped)/m.ctnperskid) > 0
ORDER BY d.shipdate, d.itemnumber;
and not get the aggregate error (3122). Im guessing it's giving me the error because i try to do a function in the select area. How can I get around this. Thank you in advance,
Ben