title: How to get the same date of the previous month?
body: <p>What I have tried:</p>
  <pre><code>for i in 1..5 loop
    v_input_date := ADD_MONTHS(v_input_date, -1);
  end loop;
  </code></pre>
  <p>Results:</p>
  <pre><code>29.03.2021.
  28.02.2021.
  31.01.2021.
  31.12.2020.
  30.11.2020.
  </code></pre>
  <p>Expected results:</p>
  <pre><code>29.03.2021.
  28.02.2021.
  29.01.2021.
  29.12.2020.
  29.11.2020.
  </code></pre>
  <p>I could extract the day returned, compare it to the original, and decrease it if needed, but is there a better way how to achieve this?</p>