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
BDavis (WMF)
.
Proof of concept query to show how many edits a given user has made in each category by joining revision on categorylinks and actor. Note that a content page can be in 0 to N categories. Edits to pages not currently in any category will appear as edits to the "" (empty string) category in this report.
Toggle Highlighting
SQL
SELECT COUNT(DISTINCT rev_id) AS edit_count, cl_to AS category_name FROM revision JOIN actor ON actor_id = rev_actor LEFT OUTER JOIN categorylinks ON cl_from = rev_page WHERE actor.actor_name = 'BryanDavis' GROUP BY cl_to 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...