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
Bhargavi Vyshnavi
.
calculate the mean of all editors' edits. Then, for each top editor, subtract the overall average from their individual total to assess how much their contribution deviates from the average.
Toggle Highlighting
SQL
WITH total_edits AS( SELECT rev_actor, COUNT(DISTINCT rev_id) AS edit_count FROM revision WHERE rev_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 2 MONTH) GROUP BY rev_actor ), average AS( SELECT ROUND(AVG(edit_count), 0) AS average_edits FROM total_edits ) SELECT t.rev_actor, CONCAT(ROUND(((t.edit_count - a.average_edits) / a.average_edits) * 100 , 2), '%') AS percentage FROM total_edits t, average a ORDER BY t.edit_count DESC LIMIT 5;
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...