Hello there,
I am fairly new to custom SQL statements in Access, so I'll do my best to communicate my request.
I am being tasked with ranking people based on a set score. The tie breaker would be their hire date, oldest date would receive the better rank. Higher the score, better the rank. with the code I found on a Microsoft support page, ID's 13 and 14 would be ranked 2 as a tie, instead I want the oldest date to tie break:
ID Score EAD Rank
12 96 1/1/1999 1
13 78 1/2/2001 2
14 78 3/1/2002 3
15 65 4/1/1998 4
(Select Count(*) from q_Ranking_Formu la Where [Score] > [Rank1].[Score]+1) AS Rank
FROM q_Ranking_Formu la AS Rank1
ORDER BY Rank1.Score DESC , Rank1.EAD;
Any suggestions? A huge thanks in advance.
Ben
I am fairly new to custom SQL statements in Access, so I'll do my best to communicate my request.
I am being tasked with ranking people based on a set score. The tie breaker would be their hire date, oldest date would receive the better rank. Higher the score, better the rank. with the code I found on a Microsoft support page, ID's 13 and 14 would be ranked 2 as a tie, instead I want the oldest date to tie break:
ID Score EAD Rank
12 96 1/1/1999 1
13 78 1/2/2001 2
14 78 3/1/2002 3
15 65 4/1/1998 4
(Select Count(*) from q_Ranking_Formu la Where [Score] > [Rank1].[Score]+1) AS Rank
FROM q_Ranking_Formu la AS Rank1
ORDER BY Rank1.Score DESC , Rank1.EAD;
Any suggestions? A huge thanks in advance.
Ben
Comment