Hi,
I am using Access 2007 and am unsure how to get the results that I want. I have joined two tables and am running a query. I get the desired results that I want except for 1 issue. My results come out as such:
Name Department Sales
Tim A $1M
Ann B $2M
Ann C $3M
Joe D $4M
Some of the employees work in more than one department. I want to know who has the highest sales in each department. However, if someone such as "Ann" had the most sales in 2 different departments, I do not want to list her twice in the results. I would like to keep her listed in Department C since she had more sales in Department C than in Department B. Then for Department B, I would like the employee with the next highest sales # listed. I would like the results to look like:
Name Department Sales
Tim A $1M
Gary B $1.1M
Ann C $3M
Joe D $4M
Anyone know how to do this?
Thanks,
swb1