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
Lofhi
.
Toggle Highlighting
SQL
USE frwiki_p; SET @datelimitactiveuser = DATE_FORMAT(NOW() - INTERVAL 30 DAY,'%Y%m%d%H%i%s'); SET @olderthan DATE_FORMAT(NOW() - INTERVAL 7 DAY,'%Y%m%d%H%i%s'); -- Utilisateurs enregistrés avec >=1 modification dans l'intervalle [aujourd'hui - 30 jours; aujourd'hui] /*SELECT rc_user_text AS 'Utilisateur', COUNT(rc_user_text) AS 'Nombre de modificationss' FROM recentchanges WHERE rc_timestamp > ( NOW() - INTERVAL 30 DAY ) AND rc_user != 0 AND rc_type = 0 GROUP BY rc_user_text HAVING COUNT(rc_user_text) >= 1 ORDER BY rc_user_text;*/ -- Utilisateurs enregistrés et autoconfirmés avec >=5 modifications dans l'intervalle [aujourd'hui - 30 jours ; aujourd'hui] -- 20190318230000 = lancement du vote (UTC) SELECT rc.rc_user_text AS 'Utilisateur', COUNT(rc.rc_user_text) AS 'Nombre de modifications durant les 30 derniers jours', u.user_editcount AS 'Nombre total de contributions' FROM recentchanges AS rc INNER JOIN `user` AS u ON rc.rc_user = u.user_id WHERE rc.rc_timestamp > (20190318230000 - @datelimitactiveuser) AND rc.rc_user != 0 AND rc.rc_type = 0 AND u.user_editcount >= 500 AND u.user_registration <= (20190318230000 - @olderthan) GROUP BY rc.rc_user_text HAVING COUNT(rc.rc_user_text) >= 5 ORDER BY rc.rc_user_text;
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...