bigalligator
Technical User
I am trying to use a like comparison with wildcards and I can't seem to get anything to work. My query:
select USERID as email
from RADplus_users
where userrole like replace( right('&ACC&', len('&ACC&') - 1), '&', 'SUP ')
I want to put wildcards around the "replace( right('&ACC&', len('&ACC&') - 1), '&', 'SUP ')" but everything I try errors out. Where % would normally go on either side is not working for me. Can someone assist?
select USERID as email
from RADplus_users
where userrole like replace( right('&ACC&', len('&ACC&') - 1), '&', 'SUP ')
I want to put wildcards around the "replace( right('&ACC&', len('&ACC&') - 1), '&', 'SUP ')" but everything I try errors out. Where % would normally go on either side is not working for me. Can someone assist?