top 5 for multiple sets of data based on criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need help. I have a simple table in which each row represents a sales, and
which includes fields for state and id#. I need to generate a query that
displays the top 5 for the most sales by id#'s by state.

I have found it easy to count the number of sales by id# and state, or to
query for the top 5 for a given state, but cannot figure out how to query for
the top 5 for EACH state.

I am supposing that I need to nest an expression in my SQL statement (or
design view), but cannot seem to make it work.

Thanks in advance for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Top 5, for each 2
Select Top 5 10
Top Values within multiple groups 6
SQL query 1
Ranking (Look for previous ranking) 3
Top X from joined table 1
Cross Join - Please Help! 5
Selecting top 5 2

Back
Top