title: select query with time_stamp difference in mysql
body: <p>i want a query to find the data from less than some value and greater than some value with time stamp gap is 5 min.</p>
  
  <p>for example 20.4 is &lt;= 26.0 and 25.5 also &lt;= 26.0 but the time_stamp value diffrence is just 3 min  so i want select the 20.4,40.1,22.3,32.2 </p>
  
  <pre><code>20.4    October, 26 2013 13:12:22+0000
  25.5    October, 26 2013 13:15:22+0000
  40.1    October, 26 2013 13:35:22+0000
  22.3    October, 26 2013 13:43:22+0000
  19.78   October, 26 2013 13:45:22+0000
  32.2    October, 26 2013 13:51:22+0000
  </code></pre>
  
  <p>but i want result set like,</p>
  
  <pre><code>20.4    October, 26 2013 13:12:22+0000
  40.1    October, 26 2013 13:35:22+0000
  22.3    October, 26 2013 13:43:22+0000
  32.2    October, 26 2013 13:51:22+0000
  </code></pre>
  
  <p>please find the sql fiddle <a href="http://www.sqlfiddle.com/#!2/e67b3/2" rel="nofollow">link</a></p>