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
Fyxi
.
Toggle Highlighting
SQL
SELECT p.page_title FROM page p JOIN page c ON p.page_title = c.page_title AND c.page_namespace = 14 -- join with the category page JOIN categorylinks cl ON c.page_id = cl.cl_from AND cl.cl_to = p.page_title -- join with the category links WHERE cl.cl_type = "page" -- only include page types in the category AND p.page_namespace = 0 -- only include articles (not talk pages or other namespaces) AND p.page_title NOT IN (SELECT cl2.cl_to FROM categorylinks cl2 WHERE cl2.cl_from = c.page_id) -- exclude pages that are already in the category
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...