Skip to content

Instantly share code, notes, and snippets.

@Ironholds
Created June 27, 2013 16:35
Show Gist options
  • Save Ironholds/5878017 to your computer and use it in GitHub Desktop.
Save Ironholds/5878017 to your computer and use it in GitHub Desktop.
hmmn
SELECT COUNT(
SELECT COUNT(*) AS edits,
substring(rev_timestamp,1,6) AS month,
rev_user AS user
FROM revision
WHERE rev_user > 0
GROUP BY substring(rev_timestamp,1,6),rev_user
HAVING edits >= 5)
GROUP BY month
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment