N
Nicholas Steinhoff
This is one I've come across that seems like it should be simple, but it
apparently isn't, as far as I can tell.
Suppose we have our typical "employees" database, with things like name,
department, and salary. (My application is altogether different, but
"employees" is a common enough one to use to describe an analogous case.)
I want to write a query that will show me the five highest-salaried
employees in each department. (My application contains many "departments",
so it's not practical to write a "top 5" query for each department and then
form a union of the results.
Thanks for any clever solutions to this one. (And my apologies if this is a
no-brainer and I missed something obvious - my Access skills have gotten a
bit rusty.)
Nicholas
apparently isn't, as far as I can tell.
Suppose we have our typical "employees" database, with things like name,
department, and salary. (My application is altogether different, but
"employees" is a common enough one to use to describe an analogous case.)
I want to write a query that will show me the five highest-salaried
employees in each department. (My application contains many "departments",
so it's not practical to write a "top 5" query for each department and then
form a union of the results.
Thanks for any clever solutions to this one. (And my apologies if this is a
no-brainer and I missed something obvious - my Access skills have gotten a
bit rusty.)
Nicholas