Need Help on AVG Query

S

scottyp1967

I have a query in Access 2000 that returns the following info:

Employee Week Efficiency
A 1 85
B 1 87
C 1 93
A 2 91
B 2 80
C 2 100
A 3 79
B 3 58
C 3 70

I need the total average efficiency for all 3 employees for each week,
all the way through week 52. So, my new query would return the
following:

Week Total Efficiency
1 88.3
2 90.3
3 69

How do I find the total efficiency using a query?

Thanks in advance.
 
M

Marshall Barton

I have a query in Access 2000 that returns the following info:

Employee Week Efficiency
A 1 85
B 1 87
C 1 93
A 2 91
B 2 80
C 2 100
A 3 79
B 3 58
C 3 70

I need the total average efficiency for all 3 employees for each week,
all the way through week 52. So, my new query would return the
following:

Week Total Efficiency
1 88.3
2 90.3
3 69


SELECT Week, Avg(Efficiency) As TotalEfficiency
FROM yourquery
GROUP BY Week
 
D

Duane Hookom

Create a totals query based on your "query in Access" that groups by Week
and averages Efficiency:

SELECT qryInAccess.Week, Avg(qryInAccess.Efficiency) AS AvgOfEfficiency
FROM qryInAccess
GROUP BY qryInAccess.Week;
 
J

John Spencer

The query for that should look like

SELECT [Week], Avg(Efficiency) as AvgEfficieny
FROM YourTable
GROUP BY [Week]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top