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
Pathoschild
.
See https://meta.wikimedia.org/wiki/User:Pathoschild/2015_sul_rename_confusion
Toggle Highlighting
SQL
SELECT actual_page.page_title AS redirected_to, intended_page.page_title AS AS target, lu_attached_method AS AS target_sul_status FROM commonswiki_p.revision INNER JOIN commonswiki_p.page actual_page ON page_namespace = 3 AND page_id = rev_page INNER JOIN commonswiki_p.redirect ON rd_namespace = 3 AND rd_title = page_title INNER JOIN commonswiki_p.page intended_page ON intended_page.page_namespace = 3 AND intended_page.page_id = rd_from LEFT JOIN centralauth_p.localuser ON lu_wiki = '{dbname}' AND intended_page.page_title = lu_name WHERE rev_user_text = 'MediaWiki message delivery' AND SUBSTRING(rev_timestamp, 1, 6) = '201503' AND intended_page.page_title NOT LIKE '%/%' AND (lu_attached_timestamp IS NULL OR SUBSTRING(lu_attached_timestamp, 1, 6) = '201503') -- ignore candidates unified before message was sent out (not the actual target) AND (rd_interwiki IS NULL OR rd_interwiki = '') -- not an interwiki redirect ORDER BY actual_page.page_title
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...