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
ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ
.
Toggle Highlighting
SQL
select DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i:%s') as Deletion_timestamp, -- format timestamp CONCAT('[[Portal:', log_title, ']]') as Deleted_Portal_page, -- format as wikilink comment_text as Deletion_reason -- deletion reason stated in the log from logging -- use logging table join `comment` on comment_id = log_comment_id -- join with comment table, escaped with ` since it is a reserved word where log_type = 'delete' -- filter deletion log and log_action = 'delete' -- filter delete action and log_namespace = 100 -- filter Portal namespace and comment_text rlike '\\bP2\\b' -- filter P2 reason order by Deletion_timestamp desc; -- newest deletions first
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...