title: How to replace this OR conditional
body: <p>I have the following simplified query:</p>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT * 
    FROM table 
   WHERE (a &lt; 1000 AND a &gt; c) 
      OR (a = 0 AND b &gt; c)
  </code></pre>
  
  <p>Now this table is <em>massive</em> with a bunch of other little conditionals going on, so I'd like to remove the OR conditional here, hopefully without needing to do a <code>join</code>.</p>
  
  <p>I've been looking at whether <code>IF</code> blocks are possible in a <code>WHERE</code> clause, but haven't had much luck.</p>