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
Best Photo Editing software
Capture Linkbutton click event in Master page from Content page
GPO to ensure no users are able to bypass the Proxy when browsing the Internet (IE:7 and IE:8)
Controlling Exchange 2010 port usage + some mythbusting
Can I use a sql query file (.sql) with bcp.exe?
bootable usb
How to convert non ansi outer join =* to ansi outer join
can't change password through OWA 2010
Attrubute 'width' is considered outdated. A newer construct is recommended
Thunderbird EMail