Say I want to include a where clause based on two columns, X and Z. I’d then order by (3 * X) + Z DESC. Is that possible? I could not find anything about arithmetic in the order by column.
So the statement would look like:
SELECT * FROM mySweetTable
WHERE U LIKE "as%" or V LIKE "as%"
ORDER BY (3 * X + Z) DESC
1 Answer