title: Addition and Division
body: <p>I needed help with doing division calculations with one decimal. I am trying to sum and divide the result. My Y and X are integers.</p>
  
  <pre><code>SELECT a.YearMonth,
         (CONVERT(DECIMAL(9,1),Y_Service)+(CONVERT(DECIMAL(9,1),x_Service)/2)) AS Average_Of_Period
  FROM table_IB a
    INNER JOIN table_UB b ON a.YearMonth=b.YearMonth 
  </code></pre>
  
  <p>This is the result I get:</p>
  
  <pre><code>YearMonth|  Average_Of_Period         
    2015-03    276318.500000
  </code></pre>
  
  <p>The correct answer is :<code>185532,5</code></p>
  
  <p>My Y and X values differ from 4 digits to 6 digits</p>