I try this query:
select t.clndhf, t.ciusmd, t.nmismd, SUM(Quantity) as Num_Products
from
(
select clndhf, ciusmd, nmismd, sum(qtfdhf) as Quantity
from swapfilio.EESWPLFD join swapfilio.EESWPLFH
on SOCSLD = SOCSLH
and CODSLD = CODSLH
join swapfilio.gesmd
on SOCSLD = socsmd
and NIISLD =...
this is my query:
select NFREFC, nmff01, ciusmd, nmismd, sum(QRCEGP) as qtd
from swapfilio.gcffc join swapfilio.gcffp
on SOCEFC = SOCEFP
and NFREFC = FRNEFP
and NRFEFC = NRFEFP
join swapfilio.gcfgp
on SOCEGP = SOCEFP
and ARMEGP = ARMEFP
and AGREGP = AGREFP
and NGREGP = NGREFP
and NLNEGP =...
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.