how to find the min, max and avg salary for each dept. in query?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an employee database and I wish to find the min, max and average
salary for EACH department.

How do I achieve this ?
 
Hallowed said:
I have an employee database and I wish to find the min, max and average
salary for EACH department.

How do I achieve this ?

Via a "Group By" field with the department's identifier.

I suspect that there is more to this question. For example, do you ALSO
want min, max, &c., statistics for the entire organization, and for some
intermediate levels? Or is something else involved that's not obvious?

-- Vincent Johns <[email protected]>
Please feel free to quote anything I say here.
 
Hallowed said:
I have an employee database and I wish to find the min, max and average
salary for EACH department.


Use a Totals type query. Create a new query and add the
table. Then use the View - Totals menu item to display the
Totals row in the query design grid.

Drag the department field down to the field list and make
sure the Totals cell fo the field is Group By.

Now, drag the salary field to the field list three times.
Set the Totals cell to Min, Max and Avg respectively.

Run the query yo see if you're getting the desired results.
 

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

Similar Threads

update query with DMax? 4
Group by 1
Pivot table calculated field 2
Finding Median 1
How to find the 2nd max salary? 1
Merging queries by column in access 1
combining queries 2
top 2 records for groups in query? 2

Back
Top