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 rev_user COUNT(DISTINCT rev_id) AS total_edits, DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 3 MONTH), '%Y-%m-%d') AS Today #WHERE FROM revision #CONDITION WHERE rev_timestamp >= DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 3 MONTH), '%Y%m%d%H%i%s') GROUP BY rev_user 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...