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
Nemo bis
.
Example query to make updates easier for https://meta.wikimedia.org/wiki/Category:Former_Wikimedia_Foundation_staff_accounts https://meta.wikimedia.org/wiki/Template:WMF_Staff
Toggle Highlighting
SQL
USE metawiki_p; SELECT actor_name, log_timestamp, REPLACE(log_title, "@global", "") AS username FROM logging_userindex JOIN actor ON log_actor = actor_id AND actor_name ="ERoss (WMF)" AND log_action = "setstatus" AND log_params LIKE "%locked%" HAVING username IN ( select REPLACE(gu_name, " ", "_") FROM globaluser WHERE gu_name LIKE "%WMF)" AND gu_locked = 1 ) AND HAVING username NOT IN ( SELECT page_title FROM page JOIN categorylinks ON page_id = cl_from AND cl_to = "Former_Wikimedia_Foundation_staff_accounts" );
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...