M
mccallen60
I currently have a table with three fields: ChgMS, Position and Rank (see
example with test data below)
ChgMS Position Rank
0.0576 2 1
0.0384 5 2
0.0452 6 3
0.0251 9 4
0.0296 9 4
0.0254 11 6
I currently use this logic in my query to create the Rank field:
Rank: (Select Count (*) from [TableName] Where [Position] <
[aliasTableName].[Position])+1
As you can see, where the Position is tied, so is the Rank. I want my ChgMS
to be the tie breaker. So the end result should look like this:
ChgMS Position Rank
0.0576 2 1
0.0384 5 2
0.0452 6 3
0.0296 9 4
0.0251 9 5
0.0254 11 6
How can I modify my logic to accomplish this?
Thank you.
example with test data below)
ChgMS Position Rank
0.0576 2 1
0.0384 5 2
0.0452 6 3
0.0251 9 4
0.0296 9 4
0.0254 11 6
I currently use this logic in my query to create the Rank field:
Rank: (Select Count (*) from [TableName] Where [Position] <
[aliasTableName].[Position])+1
As you can see, where the Position is tied, so is the Rank. I want my ChgMS
to be the tie breaker. So the end result should look like this:
ChgMS Position Rank
0.0576 2 1
0.0384 5 2
0.0452 6 3
0.0296 9 4
0.0251 9 5
0.0254 11 6
How can I modify my logic to accomplish this?
Thank you.