Address
:
(Go:
>> BACK <<
-|-
>> HOME <<
)
Include Form
Remove Scripts
Accept Cookies
Show Images
Show Referer
Rotate13
Base64
Strip Meta
Strip Title
Session Cookies
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, REPLACE(log_title, "@global", "") AS username, log_timestamp, log_comment FROM logging_compat JOIN actor ON log_actor = actor_id AND actor_name LIKE "%(WMF)" AND log_action = "setstatus" AND log_params LIKE "%locked%" JOIN centralauth_p.globaluser gu ON REPLACE(gu.gu_name, " ", "_") = REPLACE(log_title, "@global", "") AND gu.gu_name LIKE '%WMF)' AND gu.gu_locked = 1 GROUP BY username 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...