This actually isn't that hard. Just look for the reverse . . . is there a case where a number from NumberSet
is not in Result
?
For the first row, you could manually create a like
expression for finding a result that has a character other than "1457":
where Result like '%[^1457]%'
What you want is:
where Result not like '%[^1457]%'
Now, let's generalize:
where Result not like '%[^'+NumberSet+']%'