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
Cryptic
.
Number of curation logs (since 2016-11-01), date of most recent curation log, and current admin status for all users with at least one curation on enwiki since 2016-11-01.
Toggle Highlighting
SQL
SELECT recent_user_text AS 'Username', rev_min AS 'First edit', user_editcount AS 'Edit count', rev_max AS 'Last edit', recent_count AS 'Number of patrols (in time range)', log_min AS 'First patrol (ever)', log_max AS 'Last patrol', ipb_expiry AS 'Block expiry', ipb_reason AS 'Block reason' FROM ( SELECT log_user_text AS recent_user_text, COUNT(*) AS recent_count FROM logging_userindex WHERE log_type='patrol' AND log_timestamp >= 20150401000000 AND log_action='patrol' GROUP BY log_user_text ) log_recent LEFT JOIN ( SELECT log_user_text, MIN(log_timestamp) AS log_min, MAX(log_timestamp) AS log_max FROM logging_userindex WHERE log_type='patrol' AND log_action='patrol' GROUP BY log_user_text ) log_minmax ON recent_user_text = log_user_text LEFT JOIN ( SELECT rev_user_text, MIN(rev_timestamp) AS rev_min, MAX(rev_timestamp) AS rev_max FROM revision_userindex GROUP BY rev_user_text ) rev_minmax ON recent_user_text = rev_user_text LEFT JOIN `user` ON recent_user = user_id LEFT JOIN ipblocks_ipindex ON recnet_user = ipb_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...