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
FoBe
.
Lists pages for which a category with the same name exists and the page is in this category. First column is the page title, second column contains all the categories containing category with the same name as page.
Toggle Highlighting
SQL
USE huwiki_p; SELECT page_title, group_concat(concat('[[Kategória:',cl_page.cl_to,']], ')) #string_agg(cl_page.cl_to) FROM category inner join page on page.page_title = category.cat_title inner join categorylinks as cl_cat on cl_cat.cl_from = page.page_id and cl_cat.cl_to = category.cat_title inner join categorylinks as cl_page on cl_page.cl_from = page.page_id WHERE page_namespace = 0 #ORDER BY page_title GROUP 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...