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
HakanIST
.
trwiki top patrollers previous week
Toggle Highlighting
SQL
USE trwiki_p; SELECT log_user_text, COUNT(*) FROM (SELECT * FROM logging WHERE log_type = "patrol" AND log_timestamp > DATE_ADD(NOW(), INTERVAL -1 WEEK)) AS patrols JOIN (SELECT * FROM revision WHERE rev_parent_id = 0) AS new ON rev_page = log_page AND log_user <> rev_user GROUP BY log_user_text ORDER BY COUNT(*) DESC, log_user_text;
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...