Skip to content

Instantly share code, notes, and snippets.

@atopal
Created December 10, 2012 17:31
Show Gist options
  • Save atopal/4252017 to your computer and use it in GitHub Desktop.
Save atopal/4252017 to your computer and use it in GitHub Desktop.
SUMO day counter
SELECT `auth_user`.`username`, count(*) AS POSTS
FROM `questions_answer`
JOIN `auth_user` ON `questions_answer`.`creator_id`= `auth_user`.`id`
WHERE `questions_answer`.`created` BETWEEN '2012-12-06 0' AND '2012-12-06 23:59:59'
GROUP BY `auth_user`.`id` ORDER by POSTS DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment