title: I want cummulative row for a given input
body: <p>I have table like below</p>
  
  <pre><code>Months   cnt
  Jan        2
  Feb        3
  Mar        5
  </code></pre>
  
  <p>I want output like below</p>
  
  <pre><code>Months   cnt
  Jan        2
  Feb        2
  Feb        3
  Mar        2
  Mar        3
  Mar        5
  </code></pre>
  
  <p>I tried using below query but not getting the required output</p>
  
  <pre><code>Select distinct months, cnt, level 
  from (select months, cnt, rownum row_cnt 
        from tablename) 
  connect by level &lt;= row_cnt
  Order by months, cnt, level
  </code></pre>