W
WildlyHarry
I am running the following SQL looking for the rank of activity derived from
other queries.
SELECT (SELECT COUNT(*) FROM [old all] T1 WHERE T1.Total> T.Total) AS [Rank
Q3 2007], t.Total
FROM [old all] AS t
ORDER BY t.Total DESC;
The query works. Unfortunately, Rank Q3 2007 starts with 0 for the highest
amount in the Total column. ie 100 = 0, 99 = 1, 98 = 2, etc. I need the
rank to start at 1 for the highest, since 0 does not make sense as a ranking.
Is there anyway to append my SQL to start the Rank Q3 2007 at 1 instead of
0. Thank you in advance for your help.
other queries.
SELECT (SELECT COUNT(*) FROM [old all] T1 WHERE T1.Total> T.Total) AS [Rank
Q3 2007], t.Total
FROM [old all] AS t
ORDER BY t.Total DESC;
The query works. Unfortunately, Rank Q3 2007 starts with 0 for the highest
amount in the Total column. ie 100 = 0, 99 = 1, 98 = 2, etc. I need the
rank to start at 1 for the highest, since 0 does not make sense as a ranking.
Is there anyway to append my SQL to start the Rank Q3 2007 at 1 instead of
0. Thank you in advance for your help.