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
Chaduvari
.
Toggle Highlighting
SQL
USE tewiki_p; SELECT COUNT(*) AS total, SUM(IF(ug_user IS NULL, 0, 1)) AS rollbackers FROM change_tag JOIN recentchanges ON rc_id = ct_rc_id JOIN actor_recentchanges ON actor_id = rc_actor LEFT JOIN user_groups ON ug_user = actor_user AND ug_group = 'rollbacker' AND ug_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'sysop') WHERE ct_tag_id IN (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mw-rollback'); SELECT COUNT(*) AS total, SUM(IF(ug_user IS NULL, 0, 1)) AS patrollers FROM logging JOIN actor_logging ON actor_id = log_actor LEFT JOIN user_groups ON ug_user = actor_user AND ug_group = 'patroller' AND ug_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'sysop') WHERE log_type = 'patrol' AND log_timestamp > '202005';
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...