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
DannyS712
.
Toggle Highlighting
SQL
/** * Admin name * Timestamp of their 10th most recent edit * Timestamp of their 10th most recent **log entry** that requires admin rights, does not account for other admin actions * DOES NOT ACCOUNT FOR STEWARD ACTIONS BEING LOGGED AS ADMIN ACTIONS * * Log entries that count: * - abusefilter/* * - block/* * - delete/delete, /revision, /restore, /event * - import/* * - rights/rights * - protect/protect, /modify * * Not sure about * - massmessage * - pagetranslation * - pagelang * - patrol */ USE metawiki_p; set @start = '20200401000000'; set @end = '20201001000000'; SELECT a.*, ug.*, editCounts.* FROM actor a JOIN user_groups ug ON ug.ug_user = a.actor_user AND ug.ug_group = 'sysop' JOIN ( SELECT rev.rev_actor, COUNT(rev.rev_id) FROM revision_userindex rev WHERE rev.rev_timestamp > @start AND rev.rev_timestamp < @end ) as editCounts ON editCounts.rev_actor = a.actor_id LIMIT 100;
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...