B
Bob
I currently have a query that does ranking and it works. My problem or
questions is that the rank jumps from 1 to 6 and so on. I understand that
the first 5 are ties. Does anyone have an idea to make it 1 then 2? In
other words have it pick up after the rank number not the numbers of ties.
I appreciate any help with this as I am stumped.
SELECT (SELECT COUNT(*)
FROM [ShipStats2_Only] AS T1
WHERE T1.ShipPercentx > T.ShipPer )+1 AS ShipRank2, T.ShipPer
FROM [ShipStats2] AS T;
With Results like this:
ShipRank2 ShipPer
1 100.00%
1 100.00%
1 100.00%
1 100.00%
1 100.00%
6 95.65%
7 94.74%
8 93.75%
9 93.33%
9 93.33%
10 92.86%
10 92.86%
11 91.67%
11 91.67%
12 90.91%
12 90.91%
I want the results to look like this:
ShipRank2 ShipPer
1 100.00%
1 100.00%
1 100.00%
1 100.00%
1 100.00%
2 95.65%
3 94.74%
4 93.75%
5 93.33%
5 93.33%
6 92.86%
6 92.86%
7 91.67%
7 91.67%
8 90.91%
8 90.91%
questions is that the rank jumps from 1 to 6 and so on. I understand that
the first 5 are ties. Does anyone have an idea to make it 1 then 2? In
other words have it pick up after the rank number not the numbers of ties.
I appreciate any help with this as I am stumped.
SELECT (SELECT COUNT(*)
FROM [ShipStats2_Only] AS T1
WHERE T1.ShipPercentx > T.ShipPer )+1 AS ShipRank2, T.ShipPer
FROM [ShipStats2] AS T;
With Results like this:
ShipRank2 ShipPer
1 100.00%
1 100.00%
1 100.00%
1 100.00%
1 100.00%
6 95.65%
7 94.74%
8 93.75%
9 93.33%
9 93.33%
10 92.86%
10 92.86%
11 91.67%
11 91.67%
12 90.91%
12 90.91%
I want the results to look like this:
ShipRank2 ShipPer
1 100.00%
1 100.00%
1 100.00%
1 100.00%
1 100.00%
2 95.65%
3 94.74%
4 93.75%
5 93.33%
5 93.33%
6 92.86%
6 92.86%
7 91.67%
7 91.67%
8 90.91%
8 90.91%