Answer the question
In order to leave comments, you need to log in
postgresql. Is it possible to sort like this?
For example, there is such data in the table:
id | name | age |
---|---|---|
one | Vasya | 40 |
2 | Petya | fifteen |
3 | Kolya | fifteen |
4 | Sveta | thirty |
5 | Masha | thirty |
ORDER BY age = 30 DESC
A works correctly and then you can sort by other fields as needed.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question