Answer the question
In order to leave comments, you need to log in
How to change SQL query?
And so, there is a request:
SELECT address FROM servers WHERE top = 1 OR vip = 1 ORDER BY date_endtop DESC, date_endvip DESC
Answer the question
In order to leave comments, you need to log in
Use Union, something like this:
SELECT address FROM servers WHERE top = 1
UNION
SELECT address from servers where vip = 1
ORDER BY date_endtop DESC, date_endvip DESC
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question