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
Sergento
.
page links (all)
Toggle Highlighting
SQL
use ukwikiquote_p; select p.page_id, r.rd_from, 0 + case ifnull(r.rd_from,0) when 0 then 0 else 1 end + case ifnull(ppr.pp_page,0) when 0 then 0 else 2 end as redir, ifnull(pp.page_id,0) as link_id from page p left join pagelinks pl on p.page_id = pl.pl_from left join page pp on pl.pl_title = pp.page_title and pl.pl_namespace = pp.page_namespace left join redirect r on r.rd_from = p.page_id left join page_props ppr on p.page_id = ppr.pp_page and ppr.pp_propname = 'disambiguation' where p.page_namespace = 0 and pl.pl_namespace = 0 and pp.page_id is not null
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...