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 user_name AS 'Username', user_registration AS 'Registration', user_editcount AS 'Edit count', 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 AS recent_user, COUNT(*) AS recent_count FROM logging_userindex WHERE log_type='patrol' AND log_timestamp >= 20160401000000 AND log_action='patrol' GROUP BY log_user ) log_recent LEFT JOIN ( SELECT log_user, 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 ) log_minmax ON recent_user = log_user INNER JOIN `user` ON recent_user = user_id LEFT JOIN ipblocks_ipindex ON recent_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...