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
Pushakiran
.
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
#WHAT SELECT actor_id, actor_name, COUNT(DISTINCT rev_id) AS total_edits, #WHERE FROM revision JOIN actor ON rev_actor = actor_id #CONDITION WHERE rev_timestamp >= DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 2 MONTH), '%Y%m%01000000') GROUP BY actor_id,actor_name 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...