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
Bdijkstra
.
1st by desa code, 2nd by category
Toggle Highlighting
SQL
SELECT page_title, REPLACE(cl_sortkey_prefix,' ','') AS 'desacode' FROM categorylinks, page WHERE cl_to='Wikipedia:Indonesische_plaats_naar_code' AND cl_from=page_id AND page_namespace=0 AND cl_sortkey_prefix REGEXP '^35' AND NOT EXISTS (SELECT * FROM langlinks WHERE page_id=ll_from) ORDER BY page_title; SELECT page_title, (SELECT REPLACE(cl_sortkey_prefix,' ','') FROM categorylinks WHERE cl_to='Wikipedia:Indonesische_plaats_naar_code' AND cl_from=page_id) AS 'desacode' FROM categorylinks, page WHERE page_namespace=0 AND cl_from=page_id AND cl_to='Plaats_in_Oost-Java' AND NOT EXISTS (SELECT * FROM langlinks WHERE page_id=ll_from) ORDER 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...