title: Dividing 2 numbers returns 0
body: <p>I'm trying to divide 2 counts in order to return a percentage.  </p>
  
  <p>The following query is returning <code>0</code>:</p>
  
  <pre><code>select (
      (select COUNT(*) from saxref..AuthCycle
           where endOfUse is null and addDate &gt;= '1/1/2014') / 
      (select COUNT(*) from saxref..AuthCycle 
           where addDate &gt;= '1/1/2014')
      ) as Percentage
  </code></pre>
  
  <p>Should I be applying a cast?</p>