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
RhinosF1
.
Shows number of human users that are not blocked and have edited in the past 30 days and have had an account for at least 4 days and have made 10 edits
Toggle Highlighting
SQL
SELECT COUNT(DISTINCT rc_user) FROM recentchanges_userindex JOIN user ON (rc_user = user_id) LEFT JOIN ipblocks ON (rc_user = ipb_user) WHERE rc_user != 0 AND rc_timestamp > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 30 DAY), '%Y%m%d%H%i%S') AND rc_type = 0 AND rc_bot = 0 AND ipb_id IS NULL AND (user_registration IS NULL OR user_registration < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 4 DAY), '%Y%m%d%H%i%S')) AND user_editcount >= 10
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...