[AccessD] Getting the Top 3 Records of every n

Francisco Tapia fhtapia at gmail.com
Tue Apr 17 14:18:16 CDT 2007


I know how to do this in Sql Server, but have been thinking it over on how
to do this via the QBE grid in Access...


The situation is there is a list like so

Bob  100
Bob  090
Bob  050
Bob  010
Bill   250
Bill   100
Bill   070
Bill   050
Jim   etc...


What is required, is that they want to be able to obtain the top 3 records
for each customer ie, Top 3 records sorted in descending order by the qty.

Thanks guys

-- 
-Francisco
http://sqlthis.blogspot.com | Tsql and More...



More information about the AccessD mailing list