Stackoverflowers,
I want to select from a MYSQL table and show ID 54 in the end of the MYSQL query, I made the following code but it conflicts with the ORDER:
SELECT * FROM owners WHERE id <= 53
UNION
SELECT * FROM owners WHERE id >= 55
ORDER BY owner
UNION
SELECT * FROM owners WHERE id = 54
I think it is very buggy even if it worked, can you help?
If you just want to put 54 at the end, perhaps you could shortened your query to this:
False sorts first, true sorts last. Other database do it this way:
But that is funny, remove the condition altogether: