This query is marked as a draft This query has been published by Cryptic.

SQL

x
 
SELECT DISTINCT
    CONCAT('[[Portal:', page_title, ']]') AS 'Existing base pagename',
    CONCAT('[[Portal:', ar_title, ']]') AS 'Deleted pagename',
    page_is_redirect
FROM archive
JOIN page
    ON page_namespace = 100 -- Portal:
    AND page_title = REGEXP_REPLACE(ar_title, '/.*', '')
WHERE ar_namespace = 100
    AND ar_title LIKE '%/%';
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.

Checking query status...