MySQL Forums
Forum List  »  General

Re: SQL Query help needed
Posted by: Rick James
Date: May 06, 2016 05:40PM

(CASE WHEN model = 'Blueline' THEN model = 'Blueline' ELSE model like 'Blueline%' END)

simplifies to (model LIKE 'Blueline%')

if(model='blueline', product_name, if(model like 'blueline%', product_name,''))

simplifies to if(model LIKE 'blueline%', product_name, '')

Options: ReplyQuote


Subject
Written By
Posted
April 22, 2016 01:03PM
April 22, 2016 03:55PM
April 22, 2016 10:45PM
April 26, 2016 06:04PM
April 26, 2016 11:41PM
Re: SQL Query help needed
May 06, 2016 05:40PM


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.