Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
dewiki: Find not archived URLs where the same URL on same page is archived (editmode).
by
ⵓ
This query is marked as a draft
This query has been published
by
Edgars2007
.
Find not archived URLs where the same URL is archived on same or an other article.
Toggle Highlighting
SQL
USE dewiki_p; SELECT distinct farchivepage, archivefound, el_to FROM externallinks as eur INNER JOIN page as pr on eur.el_from=pr.page_id INNER JOIN (SELECT pf.page_id , substring(euf.el_to,29+15) as f , concat('[', max(euf.el_to),' ', substring(euf.el_to,29,14), ']') as archivefound , CONCAT('[' ,GROUP_CONCAT( CONCAT('https://de.wikipedia.org/w/index.php?action=edit&curid=' ,pf.page_id , ' ' , pf.page_title ) SEPARATOR '], [') ,']') as farchivepage , max(euf.el_id) as m_id FROM externallinks as euf INNER JOIN page as pf on euf.el_from=pf.page_id WHERE el_index LIKE "https://org.archive.web./web/______________/%" and pf.page_namespace=0 GROUP BY substring(euf.el_to,29+15),pf.page_id ) as filter on filter.f=el_to and filter.page_id=pr.page_id WHERE pr.page_namespace=0 GROUP BY el_to ORDER BY el_to, farchivepage DESC LIMIT 15000
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...