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
EpochFail
.
Two queries. The first gathers the top 10 pages by the number of bytes added by User:Harej. The second gathers the top 10 Encyclopedia articles by the same criteria.
Toggle Highlighting
SQL
SELECT page_id, page_namespace, page_title, SUM(IF(CAST(revision.rev_len AS INT) - IFNULL(CAST(parent.rev_len AS INT), 0) > 0, CAST(revision.rev_len AS INT) - IFNULL(CAST(parent.rev_len AS INT), 0), 0)) AS bytes_added FROM revision_userindex AS revision LEFT JOIN revision_userindex AS parent ON revision.rev_parent_id = parent.rev_id INNER JOIN page ON revision.rev_page = page.page_id WHERE revision.rev_user_text = "Harej" GROUP BY 1,2,3 ORDER BY bytes_added DESC LIMIT 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...