Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Categories assinged to a specific page, MySQL
by
JCrespo (WMF)
This query is marked as a draft
This query has been published
by
Wkentaur
.
Toggle Highlighting
SQL
WITH RECURSIVE cte (cl_from, cl_type) AS ( SELECT cl_from, cl_type FROM categorylinks WHERE cl_to = 'Külast_külla' UNION SELECT categorylinks.cl_from, categorylinks.cl_type FROM cte JOIN page ON cl_from = page_id JOIN categorylinks ON page_title = cl_to WHERE cte.cl_type = 'subcat' -- subcat addition on each iteration ) SELECT P.page_title FROM cte JOIN page P ON cl_from = page_id JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from WHERE page_namespace = 6 ORDER BY page_title;
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...