I have a table like shown below, we'll call it "Transactions." EmployeeID is just a unique identifier for an employee, TransNumber is the number of transactions they have handled in a week, and StoreID is the ID number of the store that the employee works at. How can I write a query that pulls the most successful employee for each store. For example, in Store 1, Employee 2 has had 20 transactions while employee 1 has only had 10.
EmployeeId TransNumber StoreID
1 10 1
2 20 1
3 30 2
4 20 2
5 30 3
6 50 3
Thanks for your help!
EmployeeId TransNumber StoreID
1 10 1
2 20 1
3 30 2
4 20 2
5 30 3
6 50 3
Thanks for your help!