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
Vexations
.
Toggle Highlighting
SQL
SELECT actors.actor_name, blocks.actions, deletions.actions FROM ( SELECT actor_name FROM actor JOIN user_groups ON actor_user = ug_user JOIN logging on actor_id = log_actor WHERE ug_group ='sysop' AND actor_name IN ('TonyBallioni', 'Oshwah') ) as actors JOIN ( SELECT COUNT(log_action) AS actions FROM actor JOIN user_groups ON actor_user = ug_user JOIN logging on actor_id = log_actor WHERE ug_group ='sysop' AND actor_name = 'TonyBallioni' AND log_timestamp BETWEEN (NOW() - INTERVAL 30 DAY ) AND NOW() AND log_type = 'block' GROUP BY actor_name, log_type ORDER BY actions DESC ) as blocks ON blocks.actor_id = actors.actor_id JOIN ( SELECT COUNT(log_action) AS actions FROM actor JOIN user_groups ON actor_user = ug_user JOIN logging on actor_id = log_actor WHERE ug_group ='sysop' AND actor_name = 'Oshwah' AND log_timestamp BETWEEN (NOW() - INTERVAL 30 DAY ) AND NOW() AND log_type = 'delete' GROUP BY actor_name, log_type ORDER BY actions DESC ) as deletions ON deletions.actor_id = actors.actor_id
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...