I have a table of users and a ‘points’ column. I would like to determine the number/place of the row across all the users ordered by ‘points’.
I could just get result of all users data and then do while loop, and stop when id equals necessary user. But I believe there is a more efficient way do to that because my table will contain ~100 000 rows.
Try this: