title: sql query date difference between two dates
body: <p>I am trying to do something I don't know if it's doable. I have this query:</p>
  
  <p>SELECT [CreatedOn]<br>
    FROM [MyTable]</p>
  
  <p><img src="https://i.stack.imgur.com/rgeJN.png" alt="printscreen"></p>
  
  <p>As you can see in the image, there are different dates. Now what I want to achieve is to get the time difference between each date/time in each row. For example, diference between date in row1 and row2, then row2 and row3, etc...
  Is that possible?
  Thanks, Laziale</p>