title: Mysql Query for date-range
body: <p>I have a booking table where all the service booking list where booking details saved like this:</p>
  
  <pre><code> id   user_id   booking_date  booking_id
   1    3      2017-01-10        booking1
   2    3      2017-01-11        booking1
   3    3      2017-01-12        booking1
   4    3      2017-01-13        booking1
   5    3      2017-01-14        booking1
   6    4      2017-01-19        booking2
   7    4      2017-01-20        booking2
   8    4      2017-01-21        booking2
   9    4      2017-01-22        booking2
  10    3      2017-02-14        booking3
  11    3      2017-02-15        booking3
  </code></pre>
  
  <p>I want to get a start and end date of booking that came in a row. 
  like for user_id 3 has 2 date range of booking date </p>
  
  <pre><code>from `2017-01-10 to 2017-01-14`
  </code></pre>
  
  <p>and then after some records</p>
  
  <pre><code>from `2017-02-14 to 2017-02-15`
  </code></pre>