title: If Statement in SQL Server (case when?)
body: <p>I have two fields in SQL:</p>
  
  <pre><code>Improvement Type
  25  Daily
  25  Weekly
  25  Monthly
  </code></pre>
  
  <p>I want to write  an if statement in SQL Server saying”</p>
  
  <pre><code>If type = daily than Improvement/365
  If type =  weekly than improvement/52
  If type = monthly than  improvement/12
  </code></pre>
  
  <p>Thanks for the help</p>