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
Bdijkstra
.
Note: need to match registered users by ID otherwise the query times out. Executes in ~6 minutes.
Toggle Highlighting
SQL
/*SELECT RIGHT(cl_to, 4) AS year, ipb_address AS `user`, ipb_timestamp AS ts, ipb_expiry AS exp, ipb_range_start AS `start`, ipb_range_end AS `end`, ipb_sitewide AS `sw` FROM ipblocks INNER JOIN page ON (page_title REGEXP '^Aaa' AND page_namespace=3 AND ipb_address=REPLACE(page_title, '_', ' ')) INNER JOIN categorylinks ON (cl_from=page_id AND cl_to REGEXP '^Wikipedia:Waarschuwing_20[01]') WHERE ipb_auto=0 ORDER BY year, `user`*/ SELECT year, user_name, ipb_timestamp AS ts, ipb_expiry AS exp, ipb_range_start AS `start`, ipb_range_end AS `end`, ipb_sitewide AS `sw` FROM (SELECT RIGHT(cl_to, 4) AS year, user_name, user_id FROM page, categorylinks, `user` WHERE cl_to REGEXP '^Wikipedia:Waarschuwing_20[01]' AND cl_from=page_id AND page_namespace=3 AND user_name=REPLACE(page_title, '_', ' ') ) pcl, (SELECT * FROM ipblocks WHERE ipb_auto=0) ipb WHERE ipb_user=user_id #ORDER BY year, `user`
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...