title: SQL Computed Column If Statement
body: <p>This is not working. Still getting division by zero error. Any ideas?</p>
  
  <pre><code>case when [games]=NULL then (0) 
       when [games]=(0) then (0) 
       else CONVERT([decimal](18,2),CONVERT([float],[goalsAG],(0))/CONVERT([float],[games],(0)),(0)) end
  </code></pre>