Re: Order by multiple fields with multiple options
Posted by:
Rick James
Date: February 12, 2014 08:51AM
Yes.
SELECT * FROM mytest ORDER BY
one=35 DESC, -- Yes; this will get 35 first ("one=35" is 1 or 0)
one ASC, -- Yes; this orders the rest
used DESC; -- I guess you added this on to deal with dup `one`s.
Subject
Written By
Posted
February 10, 2014 12:06PM
Re: Order by multiple fields with multiple options
February 12, 2014 08:51AM
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.