Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
trwiki:Top 1000 editors by article count
by
Evolutionoftheuniverse
This query is marked as a draft
This query has been published
by
Evolutionoftheuniverse
.
Toggle Highlighting
SQL
USE trwiki_p; /*SELECT actor_name, SUM(rev_len) as bytes FROM revision JOIN actor_revision ON rev_actor = actor_id JOIN page ON rev_page = page_id WHERE rev_parent_id = 0 AND page_namespace = 0 AND page_is_redirect=0 AND rev_deleted=0 GROUP BY actor_id ORDER BY bytes DESC LIMIT 1000; SELECT actor_name, SUM(b.rev_len - COALESCE(a.rev_len, 0)) AS bytes FROM revision_userindex b LEFT JOIN revision a ON a.rev_id = b.rev_parent_id JOIN actor_revision on actor_id = b.rev_actor JOIN page ON page_id = a.rev_page WHERE page_namespace = 0 AND page_is_redirect=0 AND b.rev_deleted=0 AND a.rev_deleted=0 GROUP BY actor_id ORDER BY bytes DESC LIMIT 1000;*/ SELECT actor_name, SUM(b.rev_len - COALESCE(a.rev_len, 0)) AS bytes FROM revision_userindex b LEFT JOIN revision a ON a.rev_id = b.rev_parent_id JOIN actor_revision on actor_id = b.rev_actor JOIN page ON page_id = a.rev_page JOIN user_groups ON ug_user = a.rev_actor AND ug_group NOT LIKE '%bot%' WHERE page_namespace = 0 AND page_is_redirect=0 AND b.rev_deleted=0 AND a.rev_deleted=0 GROUP BY actor_id ORDER BY bytes DESC LIMIT 1000;
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...