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, user_id ,SUM(IF( (log_type='delete' AND log_action != 'restore'),1,0)) as mdelete ,SUM(IF( (log_type='delete' AND log_action = 'restore'),1,0)) as mrestore ,SUM(IF( (log_type='block' AND log_action != 'unblock'),1,0)) as mblock ,SUM(IF( (log_type='block' AND log_action = 'unblock'),1,0)) as munblock ,SUM(IF( (log_type='protect' AND log_action !='unprotect'),1,0)) as mprotect ,SUM(IF( (log_type='protect' AND log_action ='unprotect'),1,0)) as munprotect ,SUM(IF( log_type='rights',1,0)) as mrights ,SUM(IF( log_type='import',1,0)) as mimport ,SUM(IF(log_type !='',1,0)) as mtotal FROM logging_logindex JOIN user ON user_id = log_user WHERE log_timestamp > '$datefrom' AND log_timestamp <= '$dateto' AND log_type IS NOT NULL AND log_action IS NOT NULL AND log_type in ('block', 'delete', 'protect', 'import', 'rights') /*AND log_user in ( $adminIds )*/ GROUP BY user_name AND ug_group = 'sysop' ORDER BY mtotal 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...