SQL
AخA
SELECT COUNT(*),
CONCAT('Draft:', pl_title) AS title,
NOT EXISTS (SELECT 1
FROM page
WHERE page_namespace = 118
AND page_title = pl_title)
AS 'Draft is redlink'
FROM pagelinks
JOIN page ON page_id = pl_from
WHERE pl_from_namespace = 0
AND pl_namespace = 118
AND pl_title != page_title
GROUP BY 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.