SQL Server: use CASE with LIKE
This is the syntax you need: CASE WHEN countries LIKE ‘%’+@selCountry+’%’ THEN ‘national’ ELSE ‘regional’ END Although, as per your original problem, I’d solve it differently, splitting the content of @selcountry int a table form and joining to it.