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
Matěj Suchánek
.
Toggle Highlighting
SQL
SELECT p1.page_title, rev_timestamp, pl_title, log_timestamp, comment_text, rev_timestamp - log_timestamp AS diff FROM pagelinks JOIN page AS p1 ON pl_from = p1.page_id JOIN revision ON rev_id = p1.page_latest JOIN logging ON log_title = pl_title AND log_namespace = pl_namespace LEFT JOIN comment_logging ON comment_id = log_comment_id LEFT JOIN page AS p2 ON pl_title = p2.page_title AND pl_namespace = p2.page_namespace WHERE pl_from_namespace = 4 AND p1.page_namespace = pl_from_namespace AND p1.page_title LIKE 'Database\_reports/Constraint\_violations/P%' AND pl_namespace = 0 AND p2.page_id IS NULL AND pl_title LIKE 'Q%' AND log_type = 'delete' AND log_action = 'delete' AND log_timestamp < rev_timestamp;
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...