My query is as follows:
SELECT ALLVAN.VENDNB, Sum(ALLVAN.SALYTD) AS SumOfSALYTD, Sum(ALLVAN.SALLYTD) AS SumOfSALLYTD, ALLVAN.PRDNB
FROM ALLVAN
GROUP BY ALLVAN.VENDNB, ALLVAN.PRDNB
ORDER BY ALLVAN.VENDNB, Sum(ALLVAN.SALYTD) DESC;
this is fine, but I would like to be able to calculate the sum of the SumofSALLYTD to have the total of all the SumOfAllytd generated by this query.
Is-it possible or do I need to do it with an external program?
Help would be appreciated on that oine.
Thanks in advance