title: Group by a range of X days
body: <p>I have a set or records and I want to count and group them by a certain range e.g. I want to count the records that were created by groups of X days</p>
  
  <pre><code>e.g. SELECT COUNT(*) FROM `table` GROUP BY /*`created` 3 days/*
  </code></pre>