G
Guest
I have a table that has Sales People that we track performance on on a weekly
basis. I'm trying to develope a query that will show the top 20 sales people
grouped by date. So the result will have 20 people per day X 5 Days or a
total of 100 records. This is the only query I have been able to come up
with and it only shows the top 10 per day. I'm stumped.
SELECT TOP 100
[ISBH Work Sheet_Weekly].Date,
[ISBH Work Sheet_Weekly].SalesPerson_NAME,
Max([ISBH Work Sheet_Weekly].DailySalesTotal) AS MaxOfDailySalesTotal
FROM [ISBH Work Sheet_Weekly]
GROUP BY [ISBH Work Sheet_Weekly].Date, [ISBH Work
Sheet_Weekly].SalesPerson_NAME;
basis. I'm trying to develope a query that will show the top 20 sales people
grouped by date. So the result will have 20 people per day X 5 Days or a
total of 100 records. This is the only query I have been able to come up
with and it only shows the top 10 per day. I'm stumped.
SELECT TOP 100
[ISBH Work Sheet_Weekly].Date,
[ISBH Work Sheet_Weekly].SalesPerson_NAME,
Max([ISBH Work Sheet_Weekly].DailySalesTotal) AS MaxOfDailySalesTotal
FROM [ISBH Work Sheet_Weekly]
GROUP BY [ISBH Work Sheet_Weekly].Date, [ISBH Work
Sheet_Weekly].SalesPerson_NAME;