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
USE arwiki_p; select user_name, (select count(*) from logging where log_user = user_id and log_action = 'delete' AND log_timestamp BETWEEN 20180902000000 AND 20190302000000) as "delete", (select count(*) from logging where log_user = user_id and log_action = 'restore' AND log_timestamp BETWEEN 20180902000000 AND 20190302000000) as 'restore', (select count(*) from logging where log_user = user_id and log_action = 'block' AND log_timestamp BETWEEN 20180902000000 AND 20190302000000) as 'block', (select count(*) from logging where log_user = user_id and log_action = 'reblock' AND log_timestamp BETWEEN 20180902000000 AND 20190302000000) as 'reblock', (select count(*) from logging where log_user = user_id and log_action = 'unblock' AND log_timestamp BETWEEN 20180902000000 AND 20190302000000) as 'unblock', (select count(*) from logging where log_user = user_id and log_action = 'protect' AND log_timestamp BETWEEN 20180902000000 AND 20190302000000) as 'protect', (select count(*) from logging where log_user = user_id and log_action = 'unprotect' AND log_timestamp BETWEEN 20180902000000 AND 20190302000000) as 'unprotect' from user inner join user_groups on ug_user = user_id where ug_group = 'sysop';
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...