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
Conniecc1
.
Toggle Highlighting
SQL
USE enwiki_p; SELECT page_title, CASE WHEN rev_deleted = 0 THEN "NO_DELETION" WHEN rev_deleted = 1 THEN "DELETED_TEXT" WHEN rev_deleted = 2 THEN "DELETED_COMMENT" WHEN rev_deleted = 4 THEN "DELETED_USER" WHEN rev_deleted = 8 THEN "DELETED_RESTRICTED" END AS delete_activity, COUNT(rev_id) AS COUNT FROM revision r JOIN page p ON p.page_id = r.rev_page WHERE page_title IN ('Sugar' ,'Salt') AND page_namespace = 0 GROUP BY 1,2
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...