The later date would work since there is a date column in the same table. I played with that concept this morning for a while but was not successful. How can that query be modified to make a date evaluation?
I understand the logic and I guess a better question might be how can I create an anomaly that doesn't include ties?
I'm taking the results from this query and grouping by location for a sum total of the Top 3 days from each location. When that 4th day gets in there my desired results are skewed.
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.