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
ԱշոտՏՆՂ
.
Toggle Highlighting
SQL
SELECT u.user_name, COUNT(CASE WHEN l.log_type = 'abusefilter' AND a.actor_user = u.user_id THEN 1 END) AS abusefilter_count, COUNT(CASE WHEN l.log_action = 'block' AND a.actor_user = u.user_id THEN 1 END) AS block_count, COUNT(CASE WHEN l.log_action = 'unblock' AND a.actor_user = u.user_id THEN 1 END) AS unblock_count, COUNT(CASE WHEN l.log_action = 'reblock' AND a.actor_user = u.user_id THEN 1 END) AS reblock_count, COUNT(CASE WHEN l.log_type IN ('contentmodel') AND a.actor_user = u.user_id THEN 1 END) AS contentmodel_count FROM user u JOIN user_groups ug ON u.user_id = ug.ug_user LEFT JOIN actor a ON a.actor_id = l.log_actor LEFT JOIN logging l ON a.actor_id = l.log_actor WHERE ug.ug_group = 'sysop' GROUP BY u.user_name;
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...