Full Version: Top 10 queries with categories
UtterAccess Discussion Forums > Microsoft® Access > Access Queries
marksmith
i have a table of invoices which are categorized by 'age' and by an 'owner'. i am trying to create a query which returns the top 10 invoices in both categories. i.e. top 10 invoices owned by 'mark' and 'less than 30 days' old. There are currently 20 'owners' and 8 invoice 'ages'.
lotrtrotk
Select *whatever_fields* FROM *whatever_tables* WHERE *whatever_condition* ORDER BY *total_field* DESC LIMIT 10
xteam
check THIS post

HTH
marksmith
thank you vey much for your help, i checked the other post and have been able to solve my problem. Such a simple idea, but they are always the best ones.
xteam
Welcome to UA !
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.