Fork of
Redlinks from Portal: namespace
by Certes
This query is marked as a draft
This query has been published
by Certes.
SQL
AخA
SELECT Pf.page_title AS portal, PL.pl_title AS category
FROM page Pf
JOIN pagelinks PL ON PL.pl_from = Pf.page_id
WHERE page_namespace = 100 /* Portal: */
AND pl_from_namespace = 100 /* Portal: */
AND pl_namespace = 14 /* Category: */
AND NOT EXISTS (SELECT 1 FROM page Pt WHERE Pt.page_namespace = PL.pl_namespace AND Pt.page_title = PL.pl_title)
ORDER BY Pf.page_title, PL.pl_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.