Fork of
Admins w/1001+ edits in the last month
by Cryptic
This query is marked as a draft
This query has been published
by Cryptic.
SQL
AخA
SELECT actor_name,
SUM(rev_timestamp LIKE '202404%') AS '2024-04',
SUM(rev_timestamp LIKE '202405%') AS '2024-05',
SUM(rev_timestamp LIKE '202406%') AS '2024-06',
SUM(rev_timestamp LIKE '202407%') AS '2024-07',
COUNT(*) / 4 AS 'average per month'
FROM revision_userindex
JOIN actor_revision ON actor_id = rev_actor
JOIN user_groups ON ug_user = actor_user AND ug_group = 'sysop'
WHERE rev_timestamp BETWEEN '202404' AND '202408'
GROUP BY rev_actor
HAVING SUM(rev_timestamp LIKE '202404%') >= 1000
OR SUM(rev_timestamp LIKE '202405%') >= 1000
OR SUM(rev_timestamp LIKE '202406%') >= 1000
OR SUM(rev_timestamp LIKE '202407%') >= 1000
ORDER BY actor_name ASC;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.