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
Huji
.
Toggle Highlighting
SQL
USE enwiki_p; SELECT ipb_address, ipb_timestamp, ipb_expiry, DATEDIFF( STR_TO_DATE(LEFT(ipb_expiry, 8), '%Y%m%d'), STR_TO_DATE(LEFT(ipb_timestamp, 8), '%Y%m%d') ) AS duration, ipb_reason_id FROM ipblocks WHERE ipb_user = 0 AND ipb_auto = 0 AND ipb_expiry NOT IN ( 'infinity', 'indefinite' ) AND DATEDIFF(NOW(), STR_TO_DATE(LEFT(ipb_timestamp, 8), '%Y%m%d')) < 30 ORDER BY ipb_id DESC LIMIT 100
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...