Replicas browser and optimizer
Active User Check - 2D5E
This query is marked as a draft
This query has been published
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 1 day and has made 1 edit
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 1 DAY), '%Y%m%d%H%i%S')) AND user_editcount >= 1
By running queries you agree to the
and you irrevocably agree to release your SQL under
All SQL code is licensed under
Checking query status...
Report a bug!
Wikimedia Cloud VPS
, written in