title: Combine identical rows with adjacent business_time periods in DB2 temporal tables
body: <p>I have a temporal DB2 table with a <code>business_time</code> <code>PERIOD</code> that looks like this:</p>
  <pre><code>      id local_unit vehicle      start        end
     12389       3538   21147 2019-01-01 2019-07-01
     12389       3538   21147 2019-07-01 2019-12-31
  </code></pre>
  <p>I would like to modify the table and combine rows like the ones above, where all values are identical and the business_time periods are adjacent. The result should look like this:</p>
  <pre><code>      id local_unit vehicle      start        end
     12389       3538   21147 2019-01-01 2019-12-31
  </code></pre>
  <p>The solution must also consider that there might be periods in the data that are <em>not</em> adjacent which should not be combined. Performance is not an issue since this would be a batch job that would only run a few times a year.</p>