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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top Ten 1

Status
Not open for further replies.

1starr

Programmer
Feb 19, 2002
34
US
I need to create a quert that gives me the top 10 most sold item in each store. In other words I have approximately 8 stores that and I want only to find out what items are most popular in each location and with this query I will create a report showing by location what was the 10 most sold item in each location.
 
The easy answer is:

In your query: SELECT TOP 10

for a more detailed answer please provide information regarding your table(s) structure, sample data, and expected results.
 
LesPaul's answer will only return the top ten records. If 1starr needs top ten per store, create a separate totals query for each store, group by item, sort by item and descending sales. Set the Top value to 10, then use a union query to display store results together.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top