Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Affiliate members harvest on Meta-Wiki
by
DAlangi (WMF)
This query is marked as a draft
This query has been published
by
JAnstee (WMF)
.
Harvest affiliate members for all affiliates in Wikimedia.
Toggle Highlighting
SQL
# avoid duplicate user names SELECT DISTINCT pl_title AS "Affiliated User Name", page_title AS "Affiliate Group" FROM commons_p.pagelinks AS pl JOIN commons_p.page AS p ON pl.pl_from = p.page_id # harvest from the a list of affiliates WHERE p.page_title IN ("Commons_Photographers_User_Group",) # exclude anything that ends with _(WMF) # as these are WMF staffs not aff members AND pl_title NOT LIKE "%_(WMF)" # remove MediaWiki_message_delivery as it's # the mass message delivery default handle AND pl_title NOT LIKE "%MediaWiki_message_delivery%" # focus on the User: namespace AND pl.pl_namespace = 2
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...