Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add counter column dyanmically

Status
Not open for further replies.

Kingkumar

Programmer
Jan 21, 2003
167
US
Hi,
I need to query a table and do some calculations on it and then display the data in ascending order based on a particular column (this part is easy and i got how to do it:)) now the problem i am facing is that i need to display the data in descding order along with an additional column called "ranking" which would display basically the row number in asceding order
eg.
data ranking
12 1
10 2
etc.
I dont know how to do that dynamically in the query.
thanks.
-Kingreen
 
FAQ:

How Do I Get a Row Number On Each Row of a Query Result Set?
faq183-3021

--James
 
Thanks.
I think i didnt put the proper query to search in faq's :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top