select JobscoID,jobstitle,jobsdiv
from Jobs
where Jobstatus in ('active','retired')
group by JobscoID,jobstitle,jobsdiv
having JobscoID = 0119
and jobstitle like '%Chair%'
or jobstitle like '%Director%'
I am ok with the fist like statement. When I insert the second like statement I get records that do not belong to JobscoID 0119. What I would really like to do is put the like statement in an array like this like ('%Chair%','%Director%'). Sql 2005 does not allow me to do this. Any ideas
from Jobs
where Jobstatus in ('active','retired')
group by JobscoID,jobstitle,jobsdiv
having JobscoID = 0119
and jobstitle like '%Chair%'
or jobstitle like '%Director%'
I am ok with the fist like statement. When I insert the second like statement I get records that do not belong to JobscoID 0119. What I would really like to do is put the like statement in an array like this like ('%Chair%','%Director%'). Sql 2005 does not allow me to do this. Any ideas