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
Wurgl
.
Benutzer mit maximal 500 Edits und mindestens 20 in den letzten 2 Monaten.
Toggle Highlighting
SQL
SET @MAXEDITCOUNT = 500; SET @MINEDITCOUNT = 20; SET @LASTMONTH = 2; SELECT user_name, REGEXP_REPLACE(user_registration, '^\(....\)\(..\)\(..\).*$', '\\1-\\2-\\3') AS "Angemeldet", REGEXP_REPLACE(MAX(rev_timestamp), '^\(....\)\(..\)\(..\).*$', '\\1-\\2-\\3') AS "letzter Edit", user_editcount, COUNT(*) AS "Anzahl Edits letzte 2 Monate" FROM user, actor, revision_userindex WHERE user_editcount <= @MAXEDITCOUNT AND user_editcount >= @MINEDITCOUNT AND user_id = actor_user AND rev_actor = actor_id AND rev_timestamp > REPLACE(CURDATE() - INTERVAL @LASTMONTH MONTH, '-', '') GROUP BY user_name HAVING COUNT(*) >= @MINEDITCOUNT
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...