D
djar
Hello,
I need to add ranking to a table of values, and even through I've gone
through everything in the group, I can't pinpoint my problem.
Here goes... I have the following resulting query
Date MeasureID Store Perf
----------------------------------------------------------
1/1/2007 1 5 100.00%
1/1/2007 1 1 100.00%
1/1/2007 1 4 97.00%
1/1/2007 1 2 89.00%
1/1/2007 1 3 89.00%
1/1/2007 2 2 100.00%
1/1/2007 2 3 100.00%
1/1/2007 2 1 100.00%
1/1/2007 2 4 100.00%
1/1/2007 2 5 75.00%
1/2/2007 ...
This is the crude data I receive daily and is updated in an access
table.
Date MeasureID Store Perf
----------------------------------------------------------
1/1/2007 1 5 100.00%
1/1/2007 1 1 100.00%
1/1/2007 2 2 100.00%
1/1/2007 2 3 100.00%
1/2/2007 ...
If I could add a column with numbering to the oridinal data, I could
jsut query out number = 1 or 2. But as I have duplicate values in the
performance and I have mo unique ID for each record, I cannot find a
way.
Any help you be greatly appreciated.
Regards,
Diego
I need to add ranking to a table of values, and even through I've gone
through everything in the group, I can't pinpoint my problem.
Here goes... I have the following resulting query
Date MeasureID Store Perf
----------------------------------------------------------
1/1/2007 1 5 100.00%
1/1/2007 1 1 100.00%
1/1/2007 1 4 97.00%
1/1/2007 1 2 89.00%
1/1/2007 1 3 89.00%
1/1/2007 2 2 100.00%
1/1/2007 2 3 100.00%
1/1/2007 2 1 100.00%
1/1/2007 2 4 100.00%
1/1/2007 2 5 75.00%
1/2/2007 ...
This is the crude data I receive daily and is updated in an access
table.
for every date, resulting in a query like this:From this data I need to Extract the Top 2 Stores for every measure
Date MeasureID Store Perf
----------------------------------------------------------
1/1/2007 1 5 100.00%
1/1/2007 1 1 100.00%
1/1/2007 2 2 100.00%
1/1/2007 2 3 100.00%
1/2/2007 ...
If I could add a column with numbering to the oridinal data, I could
jsut query out number = 1 or 2. But as I have duplicate values in the
performance and I have mo unique ID for each record, I cannot find a
way.
Any help you be greatly appreciated.
Regards,
Diego