Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6913103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:10:32+00:00 2026-05-27T09:10:32+00:00

I have the MySQL table ID , username , points . I am trying

  • 0

I have the MySQL table ID, username, points.

I am trying to order the table by points (several users can have the same amount of points), however: I am trying to only have the entries before a certain ID. So, if the query first makes an ordered table, I would like to have all its entries, sorted, but stop at ID = ’40’, because I’m only interested at the players who are ordered higher (not necessarily better, they can have the same amount of points) than the player #40.

If it is, then how is it possible?

EDIT: No, I do NOT want to limit the query results to 40 rows, for I do not know how many players are better than player #40. I only want the query to stop at the entry with ID=40, NOT with row_number=40.

EDIT 2: Problem is: the players with more points than player #40 can still have higher IDs, which is why it’s not possible to just say WHERE ID <= 40.

EDIT 3:

enter image description here

Seeing this picture, I simply want the results from player him until player jackpot, ALTHOUGH player friend has the same amount of points as jackpot has. Is that possible somehow? The names are arbitrary, by the way, I just didn’t think of any better usernames.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:10:33+00:00Added an answer on May 27, 2026 at 9:10 am

    If I understand you question correct, you are looking for a list of players who have more points than the point value of player at id 40.

    If so:

    SELECT * FROM table WHERE points > (SELECT b.points FROM table b WHERE
    b.ID = ’40’) ORDER BY points DESC

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mysql table called users with the following fields: username - password
I have a MySQL table that will only have one row. What should my
I have a user with his unique username in a mysql table, but I
I have a mysql table called RATING with this structure: ID, USERNAME, RATING, RATER,
I have a mysql table with my users... each user has various attributes like
I have three MySql tables: Users : UserId, UserName Tests : TestId, TestName Passes
I have the following MySQL (version 5.1) table (InnoDB): Username varchar(50) Sequence int(11) FileType
I have a MySQL database table with 2 fields - username and score. I
I have mysql table that has a column that stores xml as a string.
I have a MySQL table with approximately 3000 rows per user. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.