Jump to content

Returning Ranks


'LinKin

Recommended Posts

Hi

I've a SQL table.

I want to sort it DESC by the value 'points'.

I already know how to do that. But I what I want to do is to return something like this:

1. Account Points

2. Account Points

3. Account Points

4. Account Points

5. Account Points

77. myAccount my Points

So I want to return the top 5 + my position in the table (so the rank) and my data.

How can I do that?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...