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
Stefan2
.
https://en.wikipedia.org/wiki/User_talk:Stefan2#Latvian_Wikipedia.2C_again_:.29 Finds all articles on Latvian Wikipedia which do not appear in any categories other than hidden or redlinked categories.
Toggle Highlighting
SQL
USE lvwiki_p; SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT p.page_id FROM page p INNER JOIN categorylinks cl ON cl.cl_from = p.page_id INNER JOIN page p2 ON cl.cl_to = p2.page_title AND p2.page_namespace = 14 # 14 = Category LEFT JOIN page_props pp ON pp.pp_page = p2.page_id AND pp.pp_propname = 'hiddencat' WHERE pp.pp_page 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...