Fork of
Orphan portal pages
by Certes
This query is marked as a draft
This query has been published
by Certes.
SQL
AخA
SELECT Ps.page_title FROM categorylinks CL
JOIN page Pm ON Pm.page_namespace = 100 AND Pm.page_id = CL.cl_from
JOIN page Ps ON Ps.page_namespace = 100 AND Ps.page_title LIKE CONCAT(Pm.page_title, "/%")
WHERE CL.cl_to = "Single-page_portals" AND CL.cl_type = "page"
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.
All SQL code is licensed under CC0 License.