Created
December 10, 2012 17:31
-
-
Save atopal/4252017 to your computer and use it in GitHub Desktop.
SUMO day counter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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