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 =...