ORDER BY

suggest change

If you need to sort the results of a UNION, use this pattern:

( SELECT ... )
UNION
( SELECT ... )
ORDER BY

Without the parentheses, the final ORDER BY would belong to the last SELECT.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents