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
DWalden (WMF)
.
Toggle Highlighting
SQL
# SELECT EXTRACT(YEAR FROM log_timestamp) AS year, CONCAT("('", CONCAT_WS("','", logging.log_type, logging.log_action, logging.log_timestamp, 1, logging.log_namespace, logging.log_title, 1, logging.log_params, 0, logging.log_page) CONCAT("')") FROM logging WHERE log_type = "gblblock" GROUP BY year; SELECT * FROM (SELECT EXTRACT(YEAR FROM log_timestamp) AS year, CONCAT("('", CONCAT_WS("','", logging.log_type, logging.log_action, logging.log_timestamp, 1, logging.log_namespace, logging.log_title, 1, logging.log_params, 0, logging.log_page), "')"), ROW_NUMBER() OVER(PARTITION BY year) AS part FROM logging WHERE log_type = "gblblock") AS foo WHERE foo.part < 5;
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...