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

SQL

x
 
use hewiki_p;
select concat('# [[:קט:', replace(page_title, "_", " "), ']]') as category from page as p1
where page_namespace = 14
and not exists
(select * from categorylinks as c1
 where cl_from = page_id
 and not cl_to = "קטגוריות_מוסתרות")
and exists
(select * from categorylinks as c3
 where cl_from = page_id
 and cl_to = "קטגוריות_מוסתרות")
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...