Hello. Is it possible to create a column in sql li...
# suiteql
b
Hello. Is it possible to create a column in sql like
if je.name = "JE1309" then 'Right' else 'Wrong'
? Actually I tried mysql query CASE WHEN but it didn't work.
c
@Boris Yasen Can you show us your CASE statement?
b
@Clay Roper SELECT gas.frequency, gas.name, case when gas.name = 'TESTING3' then 'TESTING' else 'Except' end as 'custom' FROM GeneralAllocationSchedule as gas
c
Those quotes around your column alias might be breaking it. Are you getting an invalid or unsupported search error?
b
yes you are right
c
remove the
'
from around
custom
end as custom
b
thank you. I appreciate your help
c
Sure, hope you get where you need to go!