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
Dominic
.
Toggle Highlighting
SQL
declare @tab table(cats varchar(100)) insert into @tab values("Media_contributed_by_the_Digital_Public_Library_of_America", "XXX") SET @cat = "Media_contributed_by_the_Digital_Public_Library_of_America"; USE commonswiki_p; (SELECT REPLACE(page_title, "_", " ") AS "Category" FROM page JOIN categorylinks ON page_id = cl_from WHERE cl_to IN (select cats from @tab) AND page_namespace = 14) UNION (SELECT REPLACE(@cat, "_", " ") AS "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...