Find Top 10 items from a query

  • Thread starter Thread starter Jasper Recto
  • Start date Start date
J

Jasper Recto

I have a query that sorts items from table. I would like to only determine
and view the top items on that list.

Is that possible?

Thanks,
Jasper
 
SELECT TOP 10 ..... etc.

or put 10 in the drop down box that says All on the query menu toolbar if in
the query design view.
 
Keep in mind that the Top predicate will return more values than you want if
the field in your Order By clause has duplicates at the cutoff point.

SELECT Top 2 * from your_Table ORDER BY [DOB] DESC

will return 3 people if the 2nd and 3rd person have have same DOB. To
preclude this, you can add another field to the Order By clause that is
unique.

--
HTH
Dale

Don't forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.
 
THANKS!!
Steve said:
Open your query in design view and click in a blank area of the query
window (Where your table is at). Click on Properties. In the Properties
dialog, set the Top property to an appropriate value to get the top items
in your query.

Steve
 

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

Removing Certain Records from a Query and Report 1
Top 3 per group 3
Multiple Top Values 2
TOP N Records with 2 tables 1
filter for top 10 1
Top 10 records for each ID 4
Sum by week 4
PivotTable View 2

Back
Top