I am trying to write a query for a manager so he can see the total hours a user has worked a month.
I can get the query to do total overtimes but I can not get it to break down by month. Well I can get it to break down by month it will just show total hours worked for the days. It does not have a running total. Here is what I have for the SQL statement.
SELECT DISTINCTROW Sum(OVERTIME.[HOURS WORKED]) AS [Total Overtime], OVERTIME.[Last Name]
FROM OVERTIME
GROUP BY OVERTIME.[Last Name];
Any help would be great. Also if you could give me a pointer as to set it up where I could call out the month and get totals just for the month, not by individual users.
Thank you
I can get the query to do total overtimes but I can not get it to break down by month. Well I can get it to break down by month it will just show total hours worked for the days. It does not have a running total. Here is what I have for the SQL statement.
SELECT DISTINCTROW Sum(OVERTIME.[HOURS WORKED]) AS [Total Overtime], OVERTIME.[Last Name]
FROM OVERTIME
GROUP BY OVERTIME.[Last Name];
Any help would be great. Also if you could give me a pointer as to set it up where I could call out the month and get totals just for the month, not by individual users.
Thank you