Will
Case When var_number IN (10)
get the correct result?
Thank you.
Will
Case When var_number IN (10)
get the correct result?
Thank you.
This is highly dependent on the datatype of your column.
I would use
CASE WHEN
LEFT(var_number,2)='10' THEN 'yes'
ELSE 'no'
but this assums that varnumber is a string already. If not you have to make it one using TO_STRING.
This is highly dependent on the datatype of your column.
I would use
CASE WHEN
LEFT(var_number,2)='10' THEN 'yes'
ELSE 'no'
but this assums that varnumber is a string already. If not you have to make it one using TO_STRING.
Thank you for your reply!
The data type is CHAR. I think it might work with Char, otherwise I will convert it.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.