title: Mysql Select all rows with 10 minute difference
body: <p>I have a table with timestamp and I want to retrieve all the records with 10 minutes difference between each other.
  I give you an example: 
  I have in my database 4 dates:</p>
  
  <pre><code>01-12-2015 15:45:10
  01-12-2015 15:55:10
  01-12-2015 15:25:10
  01-12-2015 15:15:10
  </code></pre>
  
  <p>I want to retrieve only the 2 dates that have 10 minutes difference between each other.</p>
  
  <p>I don't want to get all records where the timestamp is within 10 minutes of the current timestamp. I want to select all the records having a difference of 10 minutes between them.
  So in my example I want to select on the dates:</p>
  
  <pre><code>01-12-2015 15:45:10
  01-12-2015 15:55:10
  </code></pre>
  
  <p>These 2 dates should have a difference of 10 minutes between them.
  How I can do that?</p>