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
RiazACU
.
Toggle Highlighting
SQL
SET @days = 90; # How many days to examine use bnwiki_p; SELECT COUNT(log.log_id) AS 'patrols', a.actor_name FROM logging log JOIN actor a ON log.log_actor = a.actor_id WHERE log.log_timestamp > (DATE_FORMAT((NOW() - INTERVAL @days DAY),'%Y%m%d%H%i%S')) AND log.log_type = 'patrol' AND log.log_action = 'patrol' GROUP BY log.log_actor ORDER BY COUNT(log.log_id) 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...