title: SQL - test if numeric field is holding an integer
body: <p>I have numbers (from my select)</p>
  
  <pre><code>    col1         col2
    1. 3.6   and    3
    2. 3.6   and    5
  </code></pre>
  
  <p>I want this</p>
  
  <pre><code>if(col1/col2 = integer)
      update column
  else(col1/col2  = decimal number)
      update column
  </code></pre>
  
  <p>Any idea how to get is number integer or decimal?</p>