Hi. I am using the following code to get a rank from the 'Scores' of a number of poker players.
SELECT A.MemberID, A.FirstName, A.Surname, A.Sex, A.State, A.Region, A.Points, A.Matches, COUNT(B.points) + 1 AS rank
FROM tbl_players A LEFT JOIN tbl_players B ON B.Points > A.Points
This method works fine with just a few records, however I have at present almost 6000 players and it is taking about 2 minutes for the page to load with the results when I use the above method to work out a rank.
Is there another way I could do this without putting such a strain on the server?