Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Possibly orphaned talk subpages (parent missing)
by
Certes
This query is marked as a draft
This query has been published
by
Certes
.
Now changed to check non-article talk namespaces (odd ns except 1)
Toggle Highlighting
SQL
SELECT Ps.page_title AS Subpage, rd_namespace AS Rns, rd_title AS Redirect FROM page Ps JOIN page Pp ON Pp.page_namespace=1 AND Pp.page_title=SUBSTRING_INDEX(Ps.page_title, "/", 1)) JOIN redirect ON rd_page=Pp.page_id WHERE Ps.page_namespace=1 AND Ps.page_title LIKE "%/%" AND Ps.page_is_redirect=0 AND NOT EXISTS (SELECT 1 FROM page WHERE page_namespace=0 AND page_title=Ps.page_title) ORDER BY Ps.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...