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
Robertsky
.
Toggle Highlighting
SQL
SELECT log_actor, DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:00:00') AS timestamp, -- Grouping by hour SUM(CASE WHEN log_type = 'delete' and log_action = 'delete' THEN 1 ELSE 0 END) AS deletions, SUM(CASE WHEN log_type = 'delete' and log_action = 'restore' THEN 1 ELSE 0 END) AS restorations FROM logging WHERE log_timestamp > 20041223000000 and log_timestamps < 2024122400000 GROUP BY log_actor, DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:00:00') ORDER BY log_actor, 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...