select asdf,
case when asdf >= 1 and asdf <= 10 and substr(qwer, 1, 2) = 'abc' and substr(qwer, 3, 2) = 'qwerty' then 1
else 0 end as case_field,
asdf2
from table1
should be formatted as
select asdf,
case when asdf >= 1 and
asdf <= 10 and
substr(qwer, 1, 2) = 'abc' and
substr(qwer, 3, 2) = 'qwerty' then 1
else 0 end as case_field,
asdf2
from table1
Related to #52
E.g.
should be formatted as