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
Gone Postal
.
Categories which have items in them, but are not yet created
Toggle Highlighting
SQL
WITH `needed` AS SELECT `cat_title` FROM `category` WHERE (`cat_pages` > 0 OR `cat_subcats` > 0 OR `cat_files` > 0) AND `cat_title` NOT IN (SELECT `page_title` FROM `page`) SELECT CONCAT(':[[Category:', cat_title, ']]') AS `link` FROM `needed` WHERE `cat_title` LIKE 'Number[_]%[_]on[_]%' ORDER BY SUBSTRING(`cat_title`, CHARINDEX('_on_', `cat_title`), 666) UNION ALL SELECT CONCAT(':[[Category:', cat_title, ']]') AS `link` FROM `needed` WHERE `cat_title` '%_(number)') ORDER BY `cat_ttle`
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...