I have multiple rows in a table and they have columns status and edited. Value of status can be 0, 1, 2 or 3. Following is my query.
SELECT * FROM orders ORDER BY FIELD(status, 1, 0, 2, 3), edited ASC
Is it possible to order results also based on the value of status like that:
if status = '0' => edited DESC
if status = '1' => edited DESC
if status = '2' => edited ASC
if status = '3' => edited ASC
Can I do this in one query or do I need to do separated queries?
Thanks in advance.
if status = '0' => edited DESCand so on ?