I have a view (MS Access Query, actually) that has two columns: ticker and volume. The results are ordered by volume descending. What I want to do is add a "rank" column, where rank is the number of tickers with volume greater than the current one.
have this:
Ticker Volume
QQQ 1000
CSCO 900
need this:
Ticker Volume Rank
QQQ 1000 1
CSCO 900 2
Short of taking the query data and populating a new table with an autonumber field, I can't figure out how to do that. Can it be done in SQL? Any help would be appreciated.
Thanks,
pat
have this:
Ticker Volume
QQQ 1000
CSCO 900
need this:
Ticker Volume Rank
QQQ 1000 1
CSCO 900 2
Short of taking the query data and populating a new table with an autonumber field, I can't figure out how to do that. Can it be done in SQL? Any help would be appreciated.
Thanks,
pat