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
Xiplus
.
Toggle Highlighting
SQL
SET @noedit = (SELECT COUNT(*) FROM user_groups LEFT JOIN user ON ug_user = user_id WHERE ug_group = 'ipblock-exempt' AND user_registration < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 14 DAY), '%Y%m%d%H%i%s') AND user_registration > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 104 DAY), '%Y%m%d%H%i%s') AND user_editcount = 0); SET @all = (SELECT COUNT(*) FROM user_groups LEFT JOIN user ON ug_user = user_id WHERE ug_group = 'ipblock-exempt' AND user_registration < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 14 DAY), '%Y%m%d%H%i%s') AND user_registration > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 104 DAY), '%Y%m%d%H%i%s')); SELECT @noedit, @all, @noedit / @all; SELECT user_id, user_name, user_editcount, user_registration FROM user_groups LEFT JOIN user ON ug_user = user_id WHERE ug_group = 'ipblock-exempt' AND user_registration < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 14 DAY), '%Y%m%d%H%i%s') AND user_registration > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 104 DAY), '%Y%m%d%H%i%s');
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...