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
Dideseld
.
Toggle Highlighting
SQL
WITH RECURSIVE subcategories AS ( SELECT cat_title FROM category WHERE cat_title = 'CATEGORY_NAME' UNION SELECT c.cat_title FROM category c JOIN categorylinks cl ON cl.cl_to = c.cat_title JOIN subcategories sc ON cl.cl_from = sc.cat_id ) SELECT DISTINCT p.page_title FROM page p JOIN categorylinks cl ON p.page_id = cl.cl_from LEFT JOIN revision r ON p.page_id = r.rev_page WHERE cl.cl_to IN (SELECT cat_title FROM subcategories) AND r.rev_id IS NULL;
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...