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
Diego Queiroz
.
Toggle Highlighting
SQL
set @total_edit_rank = 0; set @prev_edit_count = 0; SELECT t.rank , REPLACE(t.page_title, '_', ' ') page_title , t.total_edits FROM ( SELECT t.* , @total_edit_rank := @total_edit_rank + IF(@prev_edit_count=t.total_edits, 0, 1) AS rank , @prev_edit_count := t.total_edits FROM ( SELECT page_title , COUNT(*) AS total_edits FROM revision INNER JOIN page ON (revision.rev_page = page.page_id) WHERE revision.rev_timestamp LIKE '2016%' and page.page_namespace = 0 GROUP BY page.page_title ) t ORDER BY t.total_edits DESC , t.page_title ASC ) t WHERE (t.rank <= 100) ;
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...