title: SQL Server using wildcard within IN
body: <p>Since I believe this should be a basic question I know this question has probably been asked, but I am unable to find it. I'm probably about to earn my Peer Pressure badge, but I'll ask anyway:</p>
  
  <p>Is there a way in SQL Server that I am not aware of for using the wildcard character % when using IN.</p>
  
  <p>I realize that I can use OR's like:</p>
  
  <pre><code>select *
  from jobdetails
  where job_no like '0711%' or job_no like '0712%'
  </code></pre>
  
  <p>and in some cases I can use a subquery like:</p>
  
  <pre><code>select *
  from jobdetails
  where job_no in (select job_no from jobs where job_id = 39)
  </code></pre>
  
  <p>but I'm looking to do something like the following:</p>
  
  <pre><code>select *
  from jobdetails
  where job_no in ('0711%', '0712%')
  </code></pre>
  
  <p>In this case it uses the percent sign as a character instead of a wildcard character so no rows are returned. I currently just use a bunch of OR's when I have to do this, but I know there has to be a better way. What method do you use for this?</p>