Skip to content

Instantly share code, notes, and snippets.

@atopal
Created May 17, 2015 13:44
Show Gist options
  • Save atopal/8443dadf1852664afce2 to your computer and use it in GitHub Desktop.
Save atopal/8443dadf1852664afce2 to your computer and use it in GitHub Desktop.
All support forum pots for a certain time frame excluding thread starters
SELECT count(*)
FROM `questions_answer`
JOIN `questions_question` ON `questions_question`.`id` = `questions_answer`.`question_id`
WHERE `questions_answer`.`created` BETWEEN '2015-01-01' AND '2015-05-01'
AND `questions_answer`.`creator_id` != `questions_question`.`creator_id`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment