title: CASE WHEN variable THEN IN
body: <p>Is it possible to achieve something similar to this</p>
  
  <pre><code>WHERE t.userid in 
      CASE @UserID WHEN 0 THEN (10288,10364,10404,10445,10469,10516,10585) 
      ELSE  t.userid in (1) END
  </code></pre>