R
Ray
I am having problems adding the values for the results of
two querries using the union query. Any solution? See
below:
SELECT AmdByCustCom.PartID AS PARTID, Sum
(AmdByCustCom.AMD) AS TotalAmd
FROM AmdByCustCom
WHERE PARTID = [ENTER A PART ID]
GROUP BY PARTID
UNION ALL SELECT AmdByCustIndy.PartID AS PARTID, Sum
(AmdByCustIndy.AMD) AS TotalAmd
FROM AmdByCustIndy
WHERE PARTID = [ENTER A PART ID]
GROUP BY PARTID;
two querries using the union query. Any solution? See
below:
SELECT AmdByCustCom.PartID AS PARTID, Sum
(AmdByCustCom.AMD) AS TotalAmd
FROM AmdByCustCom
WHERE PARTID = [ENTER A PART ID]
GROUP BY PARTID
UNION ALL SELECT AmdByCustIndy.PartID AS PARTID, Sum
(AmdByCustIndy.AMD) AS TotalAmd
FROM AmdByCustIndy
WHERE PARTID = [ENTER A PART ID]
GROUP BY PARTID;