Skip to content

Instantly share code, notes, and snippets.

@JanPaulEttles
Created March 12, 2012 11:54
Show Gist options
  • Select an option

  • Save JanPaulEttles/2021381 to your computer and use it in GitHub Desktop.

Select an option

Save JanPaulEttles/2021381 to your computer and use it in GitHub Desktop.
scope
SELECT DATE(date), count(*)
FROM collection
WHERE stuffDate > from AND stuffDate < to
GROUP BY DATE(date);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment