title: Division is not being performed on Aggregate function
body: <p>i have problem in this query </p>
  
  <pre class="lang-sql prettyprint-override"><code>select SUM(stock),
         SUM(Req_Stock),
         (SUM(Req_Stock)-SUM(stock))/SUM(stock) 
    from #mapo Join #capo 
       on #mapo.Wk_Num=#capo.Wk_Num
  </code></pre>