I’m wondering if it is possible to exclude a value inside a range defined by “between”.
Here is an example:
...
WHEN left(name,2) between 'AA' and 'AZ' then 'HALLO'
...
I want to exclude from this range, for example, the value ‘AM’
Is there a short way to obtain this or I need to split the range into two different ones as follow?
...
WHEN left(name,2) between 'AA' and 'AL' then 'HALLO'
WHEN left(name,2) between 'AN' and 'AZ' then 'HALLO'
...
Thanks in advance.
1 Answer