D
Dave Gibson
Hi,
Would anyone please be able to assist me with the SQL for a query?
I have a list of customers, each one has 4 or 5 different sites that
purchase a range of goods.
What I wish to do is to get a query to list the top 10 invoice values
per site per customer. I have a table with the details of the
customers, sites and invoice values which are as below.
[CUSTOMER]
[SITE]
[INVOICEVALUE]
I have tried using the query grid for the top values but it is not
producing the top 10 invoice values per customer per site, rather, it
is getting me the global top 10 invoice values across all cutomer
sites.
Also, at some point in the future I might need to change the top 10
invoice values to the top 5 invoice values or top 20 invoice values
per site per customer
Any help would be greatly appreciated.
Regards
Would anyone please be able to assist me with the SQL for a query?
I have a list of customers, each one has 4 or 5 different sites that
purchase a range of goods.
What I wish to do is to get a query to list the top 10 invoice values
per site per customer. I have a table with the details of the
customers, sites and invoice values which are as below.
[CUSTOMER]
[SITE]
[INVOICEVALUE]
I have tried using the query grid for the top values but it is not
producing the top 10 invoice values per customer per site, rather, it
is getting me the global top 10 invoice values across all cutomer
sites.
Also, at some point in the future I might need to change the top 10
invoice values to the top 5 invoice values or top 20 invoice values
per site per customer
Any help would be greatly appreciated.
Regards