crisis2007
Technical User
I would like to have a query that shows me just the totals of each field for the month. I have the following query:
SELECT T_Receiving.ActivityDate, T_Receiving.ActivityTeam, T_Receiving.EmployeeNumber, T_StatNew.StatID, T_StatNew.RosterID, Sum(T_StatNew.Dispatched) AS SumOfDispatched, Sum(T_StatNew.[Self-Initiated]) AS [SumOfSelf-Initiated], Sum(T_Receiving.Reports) AS SumOfReports, Sum(T_Receiving.[Service Calls]) AS [SumOfService Calls], Sum(T_Receiving.Assists) AS SumOfAssists
FROM T_StatNew INNER JOIN T_Receiving ON T_StatNew.RosterID = T_Receiving.RosterID
GROUP BY T_Receiving.ActivityDate, T_Receiving.ActivityTeam, T_Receiving.EmployeeNumber, T_StatNew.StatID, T_StatNew.RosterID
HAVING (((T_Receiving.ActivityDate) Between #10/1/2011# And #10/31/2011#));
This query will show the sums of each field for each specific date. However I would like to only see the totals for the month - not for each specific date in the month. I just cannot find how to do this. Can someone point me in the right direction? Any help is greatly appreciated!
SELECT T_Receiving.ActivityDate, T_Receiving.ActivityTeam, T_Receiving.EmployeeNumber, T_StatNew.StatID, T_StatNew.RosterID, Sum(T_StatNew.Dispatched) AS SumOfDispatched, Sum(T_StatNew.[Self-Initiated]) AS [SumOfSelf-Initiated], Sum(T_Receiving.Reports) AS SumOfReports, Sum(T_Receiving.[Service Calls]) AS [SumOfService Calls], Sum(T_Receiving.Assists) AS SumOfAssists
FROM T_StatNew INNER JOIN T_Receiving ON T_StatNew.RosterID = T_Receiving.RosterID
GROUP BY T_Receiving.ActivityDate, T_Receiving.ActivityTeam, T_Receiving.EmployeeNumber, T_StatNew.StatID, T_StatNew.RosterID
HAVING (((T_Receiving.ActivityDate) Between #10/1/2011# And #10/31/2011#));
This query will show the sums of each field for each specific date. However I would like to only see the totals for the month - not for each specific date in the month. I just cannot find how to do this. Can someone point me in the right direction? Any help is greatly appreciated!