MySQL Forums :: Newbie :: RANK() emulator?


Advanced Search

RANK() emulator?
Posted by: Maxime Michel ()
Date: September 21, 2009 01:25PM

I will be running a site with a Flash game, that will send data to a PHP script that will then send it to the database. Let's say my game has 500 levels. There will also be new levels every few days. I plan the userbase to be around 20,000 people, for a start.

I want to keep the highscore of everyone on each of these levels. So Person1 would have up to 500 scores in the db. I would then access those scores from different PHP scripts. There would be a page for the best score on each level, a page showing Person1 best scores for all levels, and probably other things in the future.

I was thinking making one huge table with all the scores instead of splitting them by levels (which would make over 500 tables).

My problem is the following: how can I know the rank of a person score? Let's say I have the columns User, Level and Score. If I wanted to know the rank of Dummy in level "Alpha", how would I do it?

Options: ReplyQuote


Subject Written By Posted
RANK() emulator? Maxime Michel 09/21/2009 01:25PM
Re: RANK() emulator? Peter Brawley 09/21/2009 01:33PM
Re: RANK() emulator? Maxime Michel 09/21/2009 02:09PM
Re: RANK() emulator? Peter Brawley 09/21/2009 04:23PM
Re: RANK() emulator? Tom Grant 11/07/2009 10:27AM
Re: RANK() emulator? laptop alias 11/11/2009 03:18PM
Re: RANK() emulator? Rick James 11/08/2009 03:52PM
Re: RANK() emulator? Tom Grant 11/09/2009 10:56AM
Re: RANK() emulator? Rick James 11/09/2009 04:42PM
Re: RANK() emulator? Tom Grant 11/09/2009 05:38PM
Re: RANK() emulator? Rick James 11/09/2009 08:18PM
Re: RANK() emulator? Tom Grant 11/10/2009 06:21PM
Re: RANK() emulator? Rick James 11/10/2009 09:22PM
Re: RANK() emulator? Tom Grant 11/11/2009 09:19AM
Re: RANK() emulator? Rick James 11/11/2009 08:36PM
Re: RANK() emulator? Tom Grant 11/12/2009 08:39AM
Re: RANK() emulator? Rick James 11/12/2009 08:00PM
Re: RANK() emulator? Tom Grant 11/13/2009 06:41PM
Re: RANK() emulator? Rick James 11/17/2009 10:35PM
Re: RANK() emulator? Tom Grant 11/19/2009 10:35AM
Re: RANK() emulator? Rick James 11/17/2009 10:38PM
Re: RANK() emulator? Tom Grant 11/19/2009 10:16AM
Re: RANK() emulator? laptop alias 11/19/2009 10:32AM
Re: RANK() emulator? Tom Grant 11/19/2009 10:39AM
Re: RANK() emulator? Tom Grant 11/19/2009 10:45AM


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.