Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
MohanReddy15
.
Identify the top 5 editors (by number of edits on any wiki (te, hi etc.), across a rolling 3-month period. Rolling periods are based on the first day of each month. For example, for March, the rolling period includes January, February, and March.
Toggle Highlighting
SQL
SELECT r.rev_actor AS Editor_ID, a.actor_name AS Editor_Name, COUNT(r.rev_id) AS Total_edits FROM revision r JOIN actor a ON r.rev_actor = a.actor_id WHERE r.rev_timestamp BETWEEN DATE_FORMAT(CURDATE() - INTERVAL 2 MONTH, '%Y-%m-01') AND LAST_DAY(CURDATE()) GROUP BY r.rev_actor ORDER BY Total_editsĀ DESC LIMITĀ 5;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...