Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
nlwiki Category sort key equal to category name
by
Bdijkstra
This query is marked as a draft
This query has been published
by
Bdijkstra
.
except defaultsort
Toggle Highlighting
SQL
SELECT page_namespace AS ns, page_title, cl_to, cl_sortkey_prefix FROM categorylinks JOIN page ON (cl_from=page_id AND page_namespace NOT IN (2,3,8)) WHERE NOT EXISTS (SELECT * FROM page_props WHERE page_id=pp_page AND pp_propname='defaultsort') AND cl_to NOT REGEXP '^Wikipedia:' AND (cl_sortkey_prefix=page_title OR cl_sortkey_prefix=REPLACE(page_title,'_',' ')) ORDER BY page_namespace, 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...