andyj
Member
- Joined
- Feb 2, 2006
- Messages
- 9
- Programming Experience
- 1-3
Hi all,
I'm looking for some help with something I've got myself a bit lost on
I need to create a ranking list of salespeople, BUT only their "TOP" 3 sales count... I then need to display this on a winforms app (for a scoreboard) and be able to print out the result.
There will be two tables. Salespeople and Transactions.
(I've simplified the tables for the purpose of the question).
Salespeople will consist of
EmployeeID
Name
Transactions will consist of
TransactionID
EmployeeID
Amount
So, If an employee made 4 sales with amounts of $130, $475, $25 and $248 I need to show the top 3 sales (i.e. not the $25) and the total of those top 3 sales. And this is for each salesperson, ranked in order of best 3 sales.
Any help woud be hugely appreciated. This is not for a highly paid job, but actually a voluntary position I hold running a tournament.
Thanks
Andy
I'm looking for some help with something I've got myself a bit lost on
I need to create a ranking list of salespeople, BUT only their "TOP" 3 sales count... I then need to display this on a winforms app (for a scoreboard) and be able to print out the result.
There will be two tables. Salespeople and Transactions.
(I've simplified the tables for the purpose of the question).
Salespeople will consist of
EmployeeID
Name
Transactions will consist of
TransactionID
EmployeeID
Amount
So, If an employee made 4 sales with amounts of $130, $475, $25 and $248 I need to show the top 3 sales (i.e. not the $25) and the total of those top 3 sales. And this is for each salesperson, ranked in order of best 3 sales.
Any help woud be hugely appreciated. This is not for a highly paid job, but actually a voluntary position I hold running a tournament.
Thanks
Andy