title: Calculate duration in years if months increases from 12 months
body: <p>I have a column that accepts values in NoOfMonths which I want to calculate in years. My table structure let's say is given below</p>
  
  <pre><code>CREATE TABLE Duration
  (
  TotalMonths int
  );
  
  INSERT INTO Duration VALUES (24);
  INSERT INTO Duration VALUES (18);
  INSERT INTO Duration VALUES (7);
  </code></pre>
  
  <p>I want the result to be shown like this,</p>
  
  <pre><code>Months  Duration
  24      2 Years
  18      1 Year 6 Months
  7       7 Months
  </code></pre>