select i.code, sum(invd.quantity/p.rxconverter) as cases_shipped
from c02.invoicedetail invd, c02.pricing p
where 'link tables'
and invd.tobillon between 'somedates'
group by i.code
i want group level, and i cannot insert a sum on a created function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.