Microsoft
Software
Hardware
Network
Question : Rank Records by Grouping in Access Query
I have the following Access query.
SELECT Round1.Class, Round1.Number, Round1.Name, Round1.Position
FROM Round1
ORDER BY Round1.Class, Round1.Position;
I need to add a column that ranks the records by Position within each Class Grouping.
Example:
Class Number Name Position Rank
A 450 Fred 12 1
A 451 Tom 24 2
B 500 Bob 45 1
B 550 Tim 76 2
Answer : Rank Records by Grouping in Access Query
try this query
select Class, Number, Name, Position,(select count([class]) from round1 as r where class=round1.class and position<=round1.position) as rank
from round1
order by Round1.Class, Round1.Position;
Random Solutions
Ubuntu - Vista
A Perl Script to get windows server information
Do WPF and MVP go together?
The marquee progressbar hangs as the next line of the code executes
How deploy a website shortcut to 200 users desktop
What is the best Server Antivirus going right now? What are you guys using?
Can't print to Dymo Labelwriter 400 turbo after adding labelwriter 450 turbo drivers on windows 2003 terminal server
Having a problem seeing USB devices after installing libusb - NO KEYBOARD OR MOUSE !!
Test javamail through command line
In .NET, how can I add to a variable value to a query result using LINQ to SQL?