I am trying to group together a list of manager. The query works, its showing the managers name 3 times (3 people also on the team). I am clearly grouping incorrectly and would appreciate some help.
My Code:
I know I need to name my fields, but for now I just want to sort this grouping problem.
slightly reduced code below that does group correctly but don't understand why the first isn't grouping the same:
My Code:
Code:
SELECT DISTINCT [_tbl_Structure].Supervisor, Format(([field44]+[field30])/([field31]-([field34]+[field35]+[field38]+[field39]+[field42]+[field40]+[field41])),"Percent") AS Availability, Sum(tbl_Genesys_Daily.Field7) AS Calls
FROM _tbl_Structure INNER JOIN tbl_Genesys_Daily ON [_tbl_Structure].[User ID] = tbl_Genesys_Daily.Field5
GROUP BY [_tbl_Structure].Supervisor, Format(([field44]+[field30])/([field31]-([field34]+[field35]+[field38]+[field39]+[field42]+[field40]+[field41])),"Percent"), [_tbl_Structure].CSM;
I know I need to name my fields, but for now I just want to sort this grouping problem.
slightly reduced code below that does group correctly but don't understand why the first isn't grouping the same:
Code:
SELECT DISTINCT [_tbl_Structure].Supervisor, Sum(tbl_Genesys_Daily.Field7) AS Calls
FROM _tbl_Structure INNER JOIN tbl_Genesys_Daily ON [_tbl_Structure].[User ID] = tbl_Genesys_Daily.Field5
GROUP BY [_tbl_Structure].Supervisor, [_tbl_Structure].CSM;