Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Edits on the “Insomnia” article between 9 PM and 7 AM
by
Arkanosis
This query is marked as a draft
This query has been published
by
Arkanosis
.
Toggle Highlighting
SQL
USE frwiki_p; SELECT DATE(rev_timestamp), COUNT(time), (SUM(time) - MAX(time)) / COUNT(time) AS mean_time FROM (SELECT rev_timestamp, TIMESTAMPDIFF(MINUTE, @previous, rev_timestamp) AS time, @previous := rev_timestamp FROM (SELECT @previous := 0) AS _, revision JOIN page ON page_id = rev_page WHERE page_namespace = 0 AND page_title = 'Insomnie' ORDER BY rev_timestamp) AS timestamps WHERE (HOUR(rev_timestamp) > 19 OR HOUR(rev_timestamp) < 5) GROUP BY DATE(rev_timestamp) HAVING COUNT(time) > 1 ORDER BY 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...