A while back (thread232-1437399)I needed help with a query that would return the highest 3 daily sales amounts from multiple locations.
r937 pointed me in the right direction with this query:
select location
, Daily_Sales
from Sales as T
where ( select count(*)
from Sales...
Suppose I have a table with the fields "location", daily_sales", and "date". There are 3 different locations and I want the Top 3 "daily_sales" for each location.
I know this can easily be done using separate queries for each location (i.e., Select Top 3 Daily_Sales from Sales where location =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.