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' ) SELECT P.page_title, CONCAT("https://commons.wikimedia.org/wiki/File:", P.page_title) AS url, CL.cl_to AS cat FROM cte JOIN page P ON cl_from = P.page_id JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from WHERE page_namespace = 6 AND CL.cl_to NOT IN ('Külast_külla', 'CC-BY-SA-4.0', 'Self-published_work', 'Uploaded_via_Campaign:Kyla') 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...