title: Get the difference in time between multiple rows with the same column name
body: <p>I need to get the time difference between two dates on different rows. This part is okay but I can have instances of the same title. A quick example which will explain things some more.</p>
  <p>Lets say we have a table with the following records:</p>
  <pre><code>| ID    | Title   | Date               |
  | ----- | ------- |--------------------|
  | 1     | Down    |2021-03-07 12:05:00 |
  | 2     | Up      |2021-03-07 13:05:00 |
  | 3     | Down    |2021-03-07 10:30:00 |
  | 4     | Up      |2021-03-07 11:00:00 |
  </code></pre>
  <p>I basically need to get the time difference between the first &quot;Down&quot; and &quot;Up&quot;. So ID 1 &amp; 2 = 1 hour.</p>
  <p>Then ID 3 &amp; 4 = 30 mins, and so on for the amount of &quot;Down&quot; and &quot;Up&quot; rows there are.
  (These will always be grouped together one after another)</p>
  <p>It doesn't matter if the results are seperate or a SUM of all the differences.</p>
  <p>I'm trying to get this done without a temp table.</p>
  <p>Thank you.</p>