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
Erutuon
.
Toggle Highlighting
SQL
/* SELECT source_page.page_namespace, source_page.page_title, target_page.page_namespace, target_page.page_title FROM redirect AS rd JOIN page source_page ON rd.rd_from = source_page.page_id LEFT JOIN page AS target_page ON rd_namespace = target_page.page_namespace AND rd_title = target_page.page_title LEFT JOIN logging_logindex on log_type = 'delete' AND log_action = 'delete' AND log_namespace = target_page.page_namespace AND log_title = target_page.page_title WHERE rd_namespace >= 0 AND target_page.page_id IS NULL AND log_title IS NOT NULL LIMIT 10; */ select source_page.page_id, source_page.page_namespace, source_page.page_title, rd_namespace, rd_title, log_timestamp from logging left join redirect on rd_namespace = log_namespace and rd_title = log_title join page as source_page on source_page.page_id = rd_from left join page as target_page on target_page.page_namespace = rd_namespace and target_page.page_title = rd_title where log_type = 'delete' and log_action = 'delete' and target_page.page_id is null order by log_timestamp desc group by source_page.page_id;
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...