I have a course code name COMP2221.
I also have a function finder(int)
that can find all codes matching a certain pattern.
Like:
select * from finder(20004)
will give:
comp2211
comp2311
comp2411
comp2221
which match the pattern comp2###
.
My question is how to express "whether comp2221 is in finder(20004)" in a neat way?