I have a table that I want to count the employees by the number of times they call in a month.
The table has the following fields that are relevant:
CLL_ID
CallerEmpID
DT
I have made this query which returns my answers, but I would like to make each "month_year" a column field and return a table with the CallerEmpID as the primary key of a tally of calls by month. Currently I can only do this using a pivot table, which is one more step than I would like to take. Any suggestions?
The table has the following fields that are relevant:
CLL_ID
CallerEmpID
DT
I have made this query which returns my answers, but I would like to make each "month_year" a column field and return a table with the CallerEmpID as the primary key of a tally of calls by month. Currently I can only do this using a pivot table, which is one more step than I would like to take. Any suggestions?
PHP:
SELECT FCData_adjusted.CallerEmpID, COUNT(FCData_adjusted.CallerEmpID) AS countof_empID, Month([DT]) & "_" & Year([DT]) AS Mth_Yr
INTO tbl_NHD_tally
FROM FCData_adjusted
GROUP BY CallerEmpID, Month([DT]), Year([DT]);