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
Larske
.
Toggle Highlighting
SQL
USE svwiki_p; /* SELECT CONCAT('[[:Kategori:',p1.page_title,']]') AS kategori, cl_from FROM redirect INNER JOIN page p1 ON rd_from=p1.page_id INNER JOIN categorylinks ON cl_to=page_title INNER JOIN page p2 ON cl_from=p2.page_id WHERE */ SELECT CONCAT('[[:Kategori:',p1.page_title,']]') AS Omdirigerad_kategori, CONCAT('[[:Kategori:',rd_title,']]') AS Omdirigeringsmål, CONCAT('[[',p2.page_title,']]') AS artikel FROM redirect INNER JOIN page p1 ON rd_from=p1.page_id INNER JOIN categorylinks ON cl_to=page_title INNER JOIN page p2 ON cl_from=p2.page_id WHERE rd_namespace = 14 AND p1.page_namespace = 14 AND p2.page_namespace = 0 GROUP BY p1.page_title, p2.page_title ORDER BY kategori, artikel
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...