Hello,
I have a list of employees with scores from which I need to count how many are >94.99, between 90 and 94.99 and <90. I was wondering if there was a way to do this without having to do three separate queries. Below is the SQL I have so far...
Any insight you may have is very appreciated.
TIA,
Elysynn
I have a list of employees with scores from which I need to count how many are >94.99, between 90 and 94.99 and <90. I was wondering if there was a way to do this without having to do three separate queries. Below is the SQL I have so far...
Code:
SELECT qryAgentEvals3.Site, qryTotalEvalCount.CountOfSite AS AgentCount, Count(qryAgentEvals3.Score) AS ExceedCt, [ExceedCt]/[AgentCount] AS ExceedPct
FROM qryAgentEvals3 INNER JOIN qryTotalEvalCount ON qryAgentEvals3.Site = qryTotalEvalCount.Site
WHERE (((qryAgentEvals3.Score)>94.99))
GROUP BY qryAgentEvals3.Site, qryTotalEvalCount.CountOfSite, [ExceedCt]/[AgentCount];
Any insight you may have is very appreciated.
TIA,
Elysynn