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`, SUBSTRING(`cat_title`, CHARINDEX('_on_', `cat_title`), 666) AS `order_field` FROM `needed` WHERE `cat_title` LIKE 'Number[_]%[_]on[_]%' UNION SELECT CONCAT(':[[Category:', cat_title, ']]') AS `link`, `cat_title` AS `order_field` FROM `needed` WHERE `cat_title` LIKE '%_(number)' ORDER BY `order_field`
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...