Skip to content
Advertisement

SQLite – Sort and get the number in the list

How can I sort the list and get the current number on the list? Example:

Advertisement

Answer

If you just want 3 as a result, you can do:

Alternatively, you can use window functions:

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