SQL
AخA
USE plwiki_p;
SELECT
CONCAT("#") AS number,
CONCAT("[[user:",rev_user_text,"|",rev_user_text,"]]") AS rev_user_text,
SUM(CASE WHEN rev_timestamp BETWEEN 20170701000000 AND 20171231235959 THEN 1 ELSE 0 END) AS recent_user_editcount,
user_editcount
/*SUM(CASE WHEN rev_timestamp BETWEEN 20010101000000 AND 20171231235959 THEN 1 ELSE 0 END) AS overall_user_editcount*/
FROM revision
JOIN user ON rev_user=user_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 0
GROUP BY user_id
ORDER BY recent_user_editcount DESC
LIMIT 500;
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.