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
Solidest
.
Toggle Highlighting
SQL
SELECT CONCAT('Category:', p.page_title) AS category_link, -- Формируем ссылку на категорию COALESCE(COUNT(cl.cl_to), 0) AS usage_count -- Подсчитываем количество вхождений FROM page p LEFT JOIN categorylinks cl ON p.page_title = cl.cl_to WHERE p.page_namespace = 14 AND p.page_title NOT IN ( SELECT cl_to FROM categorylinks ) GROUP BY p.page_title ORDER BY usage_count DESC; -- Сортируем по количеству использований
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...