MySQL Forums
Forum List  »  Newbie

Re: Sorting table and then look for ID
Posted by: Mikkel Mikkelsen
Date: November 05, 2021 10:01AM

That was just what i was looking for!

The only problem now is just intergrating the WHERE fuction to look for a specific ID and return the row so i can retrive the data, can you explain how i would do that? This is not mentioned as far as i can see. I've been searching the hole internet all day for this, you helped me so much thanks!

Im using this code so far:

Id, userName, totalScore,
Row_Number() OVER w AS 'rank'
FROM scoreboard_table WINDOW w AS (ORDER BY totalScore DESC) LIMIT 10

Options: ReplyQuote

Written By
Re: Sorting table and then look for ID
November 05, 2021 10:01AM

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.