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

SQL

AخA
 
USE fawiki_p;
SELECT Concat ("[[category:", page_title, "]]") 
FROM   page 
       JOIN category 
         ON page_title = cat_title 
       LEFT JOIN categorylinks 
              ON page_title = cl_to 
       LEFT JOIN templatelinks 
              ON tl_from = page_id 
                 AND tl_namespace = 10 
                 AND tl_title IN ( 'رده_خالی',
                                   'رده_بهتر', 
                                   'رده_ابهامزدایی', 
                                   'رده_ردیابیکردن' )  
WHERE  page_namespace = 14 
       AND page_is_redirect = 0 
       AND cl_to IS NULL 
       AND tl_title IS NULL 
GROUP  BY 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.

Checking query status...