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
Gonnym
.
Toggle Highlighting
SQL
-- 1. Get all module titles WITH all_modules AS ( SELECT page_title AS module_title FROM page WHERE page_namespace = 828 -- Namespace number for "Module" ), -- 2. Get all modules that are used (transcluded in pages) used_modules AS ( SELECT DISTINCT lt_target AS module_title FROM link_target JOIN templatelinks ON lt_id = tl_target_id WHERE tl_namespace = 828 -- Namespace number for "Module" ) -- 3. Find unused modules SELECT all_modules.module_title FROM all_modules LEFT JOIN used_modules ON all_modules.module_title = used_modules.module_title WHERE used_modules.module_title IS NULL ORDER BY all_modules.module_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...