I am trying to get the top 2 results per day, where the "top" results are the rows with the highest "MPR". My table looks like this:
date symbol MPR
8/7/2008 AA 0.98
8/7/2008 AB 0.97
8/7/2008 AC 0.96
...
8/7/2008 AZ 0.50
8/8/2008 AA 0.88
8/8/2008 AB 0.87
8/8/2008 AC 0.86
...
8/8/2008 AZ 0.40
...
many other days
I would like the result set to be:
date symbol MPR
8/7/2008 AA 0.98
8/7/2008 AB 0.97
8/8/2008 AA 0.88
8/8/2008 AB 0.87
I have tried using the TOP keyword, but this only gives me the top 2 rows, and I'm trying to do the top 2 rows per date.
I am using Microsoft Access. I'd appreciate any help! :-)