Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Finding the top 10 editors from Tamil Wikipedia
by
Bhuvana Meenakshi
This query is marked as a draft
This query has been published
by
Bhuvana Meenakshi
.
Toggle Highlighting
SQL
SELECT a.actor_name, COUNT(a.actor_user) Edit_Count FROM revision AS t /*variable assignments*/ JOIN actor AS a ON (a.actor_id = t.rev_actor) JOIN page AS p ON rev_page=page_id /*The rev_page field holds the latest revision page count while this code is executed by mapping with the page_id fields of the respective page*/ WHERE a.actor_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group='bot') AND lower(cast(a.actor_name as CHAR)) NOT LIKE '%bot%' AND page_namespace = 0 GROUP BY a.actor_name HAVING Edit_Count>1000 /*With a criteria of edit count as above 1000 the Top 10 editors will be listed*/ ORDER BY Edit_Count DESC /* The editor list will be sorted in descending order based on the edit count*/ limit 10 /*This will limit the results to Top 10*/
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...