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
Alexander Misel
.
Toggle Highlighting
SQL
SELECT RANK() OVER (ORDER BY sl DESC) rank, actor_name, (bsl / (asl+1)) sl FROM (SELECT actor_name, user_id, COUNT(IF(page_namespace = 0, TRUE, NULL)) asl, COUNT(IF(page_namespace != 0, TRUE, NULL)) bsl FROM revision JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id JOIN `user` ON actor_user = user_id WHERE rev_timestamp > DATE_FORMAT(NOW() - INTERVAL 7 DAY, '%Y%m%d%H%i%s') GROUP BY actor_name ) aaa WHERE NOT EXISTS (SELECT * FROM user_groups WHERE ug_user = user_id AND ug_group = 'bot') ORDER BY sl 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...