Fork of Missing categories by ԱշոտՏՆՂ
This query is marked as a draft This query has been published by Fuzzy.

SQL

AخA
 
SELECT concat('# [[:Կקטגוריה:', cl_to, ']] - '), count(*) AS C
FROM categorylinks
JOIN page AS ap ON ap.page_id = cl_from
WHERE ap.page_namespace = 14
  #AND cl_to REGEXP '[0-9][0-9][0-9].+'
  AND NOT EXISTS
    (SELECT 1
     FROM page AS cp
     WHERE cp.page_namespace = 14
       AND cp.page_title = cl_to)
GROUP BY cl_to
HAVING C > 1
ORDER BY C DESC
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...