I would like use CASE
statement in ORDER BY
clausule like this:
ORDER BY
CASE
WHEN `Delivery`.`type` = 0 THEN `Delivery`.`quantity` ASC
WHEN `Delivery`.`type` = 1 THEN `Delivery`.`quantity` DESC
END
But I can use ASC
/DESC
keywords only after the END
.
There is some solution for this?