MySQL Forums
Forum List  »  Newbie

Getting the rank (ORDER BY position) of a record in a table
Posted by: James Spibey
Date: February 04, 2005 01:03PM

Hi,

I have an interesting problem. I have a table which contains a series of names and times

entry_id name time
1 john 1:32
2 bill 1:54
3 sarah 1:12


What I need to be able to do is for each of those records to be able to display their 'ranking' based on the time column.

What's the best way to do this? It needs to be scalable to many thousands of records so performance is definately a priority.

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Getting the rank (ORDER BY position) of a record in a table
February 04, 2005 01:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.