MySQL Forums
Forum List  »  Newbie

Re: correct way to sub select ?
Posted by: Peter Brawley
Date: April 10, 2016 02:21PM

... order by if(iswebsitelive='ok',0,1) ...

or if you need to handle values other than 'ok' and 'not ok' ...

... order by if( iswebsitelive='ok',0, if(iswebsitelive='not ok',1,2) ) ..

Options: ReplyQuote


Subject
Written By
Posted
Re: correct way to sub select ?
April 10, 2016 02:21PM


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.