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
Edgars2007
.
Toggle Highlighting
SQL
use lvwiki_p; select p.page_title, pl_title, p2.page_title from pagelinks #join page p on pl_from=p.page_id #join page p2 on LOWER(CONVERT(p2.page_title USING latin1))=LOWER(CONVERT(pl_title USING latin1)) where LOWER(CONVERT(pl_title USING latin1)) in (select LOWER(CONVERT(page_title USING latin1)) from page where page_namespace=0) and pl_from_namespace = 0 AND pl_namespace = 0 AND NOT EXISTS ( SELECT * FROM page WHERE page_namespace = 0 AND page_title = pl_title ) #GROUP BY pl_title limit 1000; /* use lvwiki_p; SELECT * FROM page where page_title like '%" + (SELECT pl_title FROM pagelinks WHERE pl_from_namespace = 0 AND pl_namespace = 0 AND NOT EXISTS ( SELECT * FROM page WHERE page_namespace = 0 AND page_title = pl_title ) GROUP BY pl_title) + "%' limit 10; use lvwiki_p; SELECT pl_title FROM pagelinks WHERE pl_from_namespace = 0 AND pl_namespace = 0 AND NOT EXISTS ( SELECT * FROM page WHERE page_namespace = 0 AND page_title = pl_title ) and pl_title like '%" + (select page_title from page where page_namespace=0) + "%' GROUP BY pl_title limit 10;*/
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...