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
SNowick (WMF)
.
Toggle Highlighting
SQL
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE rev_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -30 DAY), "%Y%m%d%H%i%s")); SELECT user_name, edit_count, user_registration, ug_group FROM ( SELECT user_name, COUNT(*) as edit_count, user_registration, ug_group, ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS row_num FROM revision_userindex JOIN actor ON actor.actor_id = revision_userindex.rev_actor JOIN user u ON u.user_id = actor.actor_user LEFT JOIN user_groups ON user_groups.ug_user = u.user_id WHERE u.user_name IS NOT NULL GROUP BY user_name ) AS t WHERE row_num <= 25 ORDER BY edit_count DESC;
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...