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
BDavis (WMF)
.
Demonstration of joining the page, categorylinks, and page_props tables to find the names of hidden categories that a given page is a member of.
Toggle Highlighting
SQL
SELECT p.page_title, cl_to AS hidden_category FROM page AS p INNER JOIN categorylinks ON p.page_id = cl_from INNER JOIN page AS catpage ON catpage.page_namespace = 14 AND catpage.page_title = cl_to INNER JOIN page_props ON pp_page = catpage.page_id AND pp_propname = 'hiddencat' WHERE p.page_namespace = 0 AND p.page_title = 'NOFX';
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...