This file contains 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 count(username) AS num_contribs, | |
group_concat(username, ' (', user_total_revisions, ' revisions)' separator ', ') AS contribs, | |
sum(user_total_revisions) AS revisions_by_these_contribs, | |
overall_total_revisions, | |
(sum(user_total_revisions) / overall_total_revisions * 100) AS percentage_revisions_by_these_contribs | |
FROM ( | |
/* get usernames WITH X revisions IN ANY month OF the last 3, AND Y revisions overall IN the last 3 */ |