Skip to content
Advertisement

MySQL get rows starting with specific id after sort / order by

I got this table:

I need to order it by score desc:

and get first 3 rows which starts with id 6

So the result should be:

Is this possible? Thanks in advance

Advertisement

Answer

With this:

See the demo.
Results:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement