Need a ranking function

fhs

Registered User.
Local time
Today, 22:58
Joined
Aug 8, 2001
Messages
68
In a select query, I have a list of values, let's say production amounts, and some of them are the same amount. I need a function that will "rank" the values, that is, identify the largest - 1, then the next largest - 2, and so forth. If there are four values that are the same then each gets the same ranking. All values need to be ranked. Know what I mean? I believe this can be done as a function that I can call from the query. Thanks.
 

Users who are viewing this thread

Back
Top Bottom