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
DreamRimmer
.
Toggle Highlighting
SQL
SELECT a.actor_name, ug.ug_group AS role, COUNT(log.log_id) AS num_actions, MAX(log.log_timestamp) AS last_action FROM user_groups ug JOIN actor_user a ON a.actor_user = ug.ug_user LEFT JOIN logging_userindex log ON log.log_actor = a.actor_id AND log.log_type = 'renameuser' WHERE ug.ug_group IN ('global-renamer', 'steward', 'bot') GROUP BY a.actor_name, ug.ug_group HAVING COUNT(log.log_id) > 0 OR ug.ug_group NOT IN ('bot', 'steward') UNION ALL SELECT a.actor_name, 'AccountVanishRequests' AS role, COUNT(log.log_id) AS num_actions, MAX(log.log_timestamp) AS last_action FROM actor_user a LEFT JOIN logging_userindex log ON log.log_actor = a.actor_id AND log.log_type = 'renameuser' WHERE a.actor_name = 'AccountVanishRequests' ORDER BY last_action 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...