I have a query that uses ORDER BY ASC and as such 0’s come up first. I would like them to come up last whilst still maintaining the ascending search order. How can I achieve this?
An example of this is:
SELECT product_price ORDER BY product_price ASC
So instead of
0
1
2
3
I would want
1
2
3
0
I don’t have MySQL to test against, but this works in SQL Server and Advantage Database Server:
Replace the
99999999series with the maximum value of theproduct_pricecolumn type.