Hey everybody,
I am trying to calculate YTD sales and I was wondering if anybody has any ideas on how to do this. Here is the SQL for the query that I have right now:
SELECT [TOTAL SALES].EMPL_LAST_NAME, [TOTAL SALES].metMonth, [TOTAL SALES].metYear, Sum([TOTAL SALES].TOTAL_SALES) AS YTDSALES
FROM [TOTAL SALES]
GROUP BY [TOTAL SALES].EMPL_LAST_NAME, [TOTAL SALES].metMonth, [TOTAL SALES].metYear;
If anyone could help I would be greatly appreciative!
Thanks
I am trying to calculate YTD sales and I was wondering if anybody has any ideas on how to do this. Here is the SQL for the query that I have right now:
SELECT [TOTAL SALES].EMPL_LAST_NAME, [TOTAL SALES].metMonth, [TOTAL SALES].metYear, Sum([TOTAL SALES].TOTAL_SALES) AS YTDSALES
FROM [TOTAL SALES]
GROUP BY [TOTAL SALES].EMPL_LAST_NAME, [TOTAL SALES].metMonth, [TOTAL SALES].metYear;
If anyone could help I would be greatly appreciative!
Thanks