mysql SELECT IF statement with OR mysql SELECT IF statement with OR sql sql

mysql SELECT IF statement with OR


Presumably this would work:

IF(compliment = 'set' OR compliment = 'Y' OR compliment = 1, 'Y', 'N') AS customer_compliment


IF(compliment IN('set','Y',1), 'Y', 'N') AS customer_compliment

Will do the job as Buttle Butkus suggested.