title: Previous rows running string value SQL
body: <p>I have an input table and output should show the running value for a given number of records</p>
  <pre><code>Input table
  *************
  date           runtime_secconds 
  03-Mar-2022     92                  
  03-Mar-2022     586                 
  02-Mar-2022     106                 
  01-Mar-2022     112                 
  
  Expected Output Result
  ***********************
  date            runtime_secconds    running_seconds_value
  03-Mar-2022     92                  92,586,106,112
  03-Mar-2022     586                 586,106,112
  02-Mar-2022     106                 106,112
  01-Mar-2022     112                 112
  </code></pre>
  <p>Note: I want to give the input number of records as input. if I say 30 records, it has to give results for the most recent 30 days records</p>