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
.
gesucht werden Rotlinks nach dem Schema "Blubb (Klammerteil)Blah" wobei "Blubb (Klammerteil)" als Blaulink existiert
Toggle Highlighting
SQL
USE dewiki_p; SELECT CONCAT('[[', Artikel.page_title, ']]') AS "Artikelchen", pl_title AS "eventüll karpotter Link", CONCAT(SUBSTRING_INDEX(pl_title, ')', 1), ')|', SUBSTRING_INDEX(pl_title, ')', -1)) AS "Vorschlag" from pagelinks, page AS Artikel, page AS Blaulink WHERE Artikel.page_id = pl_from AND pl_namespace = 0 AND pl_from_namespace = 0 AND pl_title regexp '\\)[^_/]' AND Blaulink.page_namespace = pl_namespace AND Blaulink.page_title = CONCAT(SUBSTRING_INDEX(pl_title, ')', 1), ')') AND NOT EXISTS (SELECT 1 FROM page WHERE page_title = pl_title AND page_namespace = pl_namespace )
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...