title: Need to fetch data between two date range with dummy rows
body: <p>I am having a requirement where I need to fetch data between two dates from the database. On top of that I am having a case where I say need data for last 24 hours, so the data returned on above query should give data hour specific. So, let say if time slot is 1:00 AM to 2:00 AM and there are 2 rows residing in this time slot it should return value as 2 and so on count for each time slot.</p>
  
  <p>Suggest something on this problem.</p>