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
Larske
.
Toggle Highlighting
SQL
USE svwiki_p; SELECT SUBSTRING('JanFebMarAprMajJunJulAugSepOktNovDec',SUBSTRING(log_timestamp,5,2)*3-2,3) AS månad, COUNT(*)/16 AS antal_blockeringar FROM logging WHERE log_type = 'block' AND log_timestamp > '20200101000000' AND log_timestamp < '20210101000000' GROUP BY månad ORDER BY månad /* SELECT log_type, SUBSTRING(log_timestamp,1,8) AS dag, COUNT(*) AS antal FROM logging INNER JOIN actor on log_actor=actor_id WHERE log_timestamp >= '20191230000000' AND log_timestamp < '20210104000000' AND (log_type = 'create' OR log_type = 'delete') AND log_namespace = 0 GROUP BY log_type, dag ORDER BY dag */
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...