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
Wurgl
.
Rotlinks in Artikeln (außer BKS) bei denen die ersten zwei Buchstaben im Klammerteil gleich sind wie vorhandener Blaulink
Toggle Highlighting
SQL
SELECT STRAIGHT_JOIN article.page_title AS "Artikel", pl_title AS "Rotlink", similar.page_title AS "Ähnlicher Artikel" FROM pagelinks LEFT JOIN templatelinks ON tl_from = pl_from AND tl_namespace = 10 AND tl_title = 'Begriffsklärung' LEFT JOIN page AS rotlink ON rotlink.page_namespace = pl_namespace AND rotlink.page_title = pl_title, page AS similar, page AS article WHERE tl_from IS NULL AND rotlink.page_id IS NULL AND pl_from_namespace = 0 AND pl_namespace = 0 AND pl_title LIKE "%\_(%" AND similar.page_namespace = 0 AND similar.page_title LIKE CONCAT(SUBSTRING_INDEX(pl_title, "_(", 1), "\_(", LEFT(SUBSTRING_INDEX(pl_title, "_(", 2), 2), "%") AND article.page_id = pl_from LIMIT 10
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...