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
.
verlinkte Weiterleitungen mit Anzahl Verlinkungen
Toggle Highlighting
SQL
SELECT CONCAT('[{{fullurl:', REPLACE(page_title, '_', ' '), '&redirect=no}} ', REPLACE(page_title, '_', ' '), ']') AS Weiterleitung, CONCAT('[[', REPLACE(NACH.pl_title, '_', ' '), ']]') AS Ziel, COUNT(DISTINCT VON.pl_title) AS "Anzahl Links auf Weiterleitung", CONCAT('[[', GROUP_CONCAT(DISTINCT REPLACE(VON.pl_title, '_', ' ') SEPARATOR ']], [[' LIMIT 5), ']]') AS "maximal 5 Links" FROM page, pagelinks AS VON, pagelinks AS NACH WHERE page_namespace = 0 AND page_is_redirect = 1 AND VON.pl_title = page_title AND VON.pl_namespace = page_namespace AND VON.pl_from_namespace = 0 AND NACH.pl_from = page_id AND NACH.pl_namespace = 0 GROUP BY page_id HAVING COUNT(DISTINCT VON.pl_title) > 1 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...