Hi,
I have an excel file with sales order amounts for different customers from different countries. That's a linked table to an access, where I've been able to create a query that sums up the amount for each customer in each country, sorted first by country, then by amount.
How can now create a query that only retreives the top 5 customers for each country? If I could just modify the existing query, that would be great, but if I need a new query linked to the first one it's ok too. I just made an SQL query like this:
But this only shows the first 5 rows of the query BW_top5customersbyinvoice (which is the one I was talking earlier).Code:SELECT TOP 5 BW_top5customersbyinvoice.[Company code Name], BW_top5customersbyinvoice.[Sold-to party], BW_top5customersbyinvoice.[Sold-to party Name], BW_top5customersbyinvoice.[SumOfNet Sell Price Invoice] FROM BW_top5customersbyinvoice;
Any suggestion?
Thank you