Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Best 2 of X

Status
Not open for further replies.

MTBChik

Technical User
Jun 19, 2001
58
US
I am trying to write a query that will take the best two sales for a single salesperson, then average them. Some salespeople have one or two sales, and some have several hundred.

My table is set up thusly:
SalesID, SalesAmount, SalesType

SalesType doesn't matter. I want to take all types in figuring out their average.

I'm guessing I'll have to write this in sql, but can't quite get access to cooperate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top