Re: Trouble Sorting Statement after UNION and changin Date
The first select in the union shows yyyy-mm-dd dates. The second shows dd-mm-yyyy.
As the manual says (https://dev.mysql.com/doc/refman/5.7/en/union.html), ot order a select stmt in a union, enclose the stmt in parentheses.
Subject
Written By
Posted
Re: Trouble Sorting Statement after UNION and changin Date
October 11, 2017 09:05AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.