Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
ԱշոտՏՆՂ
.
Toggle Highlighting
SQL
SELECT concat('#[[', a.page_title, ']]') FROM (SELECT page_id, page_title, COUNT(cl_to) AS total_categories FROM page JOIN categorylinks ON page_id = cl_from WHERE page_namespace = 0 GROUP BY page_id) a LEFT JOIN (SELECT cl_from, COUNT(*) AS existing_categories FROM categorylinks JOIN page ON page_title = cl_to AND page_namespace = 14 GROUP BY cl_from) b ON a.page_id = b.cl_from WHERE b.existing_categories IS NULL OR b.existing_categories = 0
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...