Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Templates with Doc template and no subpage
by
Martin Urbanec
This query is marked as a draft
This query has been published
by
Matěj Suchánek
.
Toggle Highlighting
SQL
USE cswiki_p; SELECT CONCAT("Šablona:", page_title) FROM page AS temps JOIN (SELECT * FROM templatelinks WHERE tl_title = "Dokumentace" AND tl_namespace = 10) AS tlinks ON tl_from = page_id WHERE page_namespace = 10 AND NOT EXISTS (SELECT * FROM page AS docs WHERE docs.page_namespace = 10 AND docs.page_title = CONCAT(temps.page_title, "/doc")) ORDER BY page_title; SELECT CONCAT("Šablona:", page_title) FROM page AS temps LEFT JOIN (SELECT * FROM templatelinks WHERE tl_title = "Dokumentace" AND tl_namespace = 10) AS tlinks ON tl_from = page_id WHERE page_namespace = 10 AND tl_from IS NULL AND EXISTS (SELECT * FROM page AS docs WHERE docs.page_namespace = 10 AND docs.page_title = CONCAT(temps.page_title, "/doc")) 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...