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
EpochFail
.
Toggle Highlighting
SQL
SELECT page.page_namespace, page.page_title, IF(page.page_is_redirect, redirected.page_id, page.page_id) AS target_page_id FROM page LEFT JOIN redirect ON page.page_is_redirect AND page.page_id = rd_from LEFT JOIN page AS redirected ON page.page_is_redirect AND redirect.rd_namespace = redirected.page_namespace AND redirect.rd_title = redirected.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...