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
Sk.ziyaur rahaman
.
Toggle Highlighting
SQL
set @avg_edits=(select avg(totaledits) as avg_edit from (select actor_id,actor_name,count(r.rev_id) as totaledits from revision r join actor a on r.rev_actor=a.actor_id where r.rev_timestamp between DATE_FORMAT(CURDATE() - INTERVAL 3 MONTH,'%Y%m01') and DATE_FORMAT(CURDATE(),'%Y%m%d') group by actor_id) as new); SELECT a.actor_name, COUNT(r.rev_id) AS total_edits ,((count(r.rev_id)-@avg_edits)/@avg_edits)*100 as percentage FROM revision r JOIN actor a ON r.rev_actor = a.actor_id WHERE r.rev_timestamp BETWEEN DATE_FORMAT(CURDATE() - INTERVAL 3 MONTH, '%Y%m01') AND DATE_FORMAT(CURDATE(), '%Y%m%d') GROUP BY actor_id ORDER BY total_edits 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...