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
.
Neue User angemeldet zwischen vor @MINAGE bis @MAXAGE Monaten mit mehr als zwischen @MINEDIT und @MAXEDIT Edits und aktiv in den letzten @ACTIVE Monaten
Toggle Highlighting
SQL
SET @MINAGE=2; SET @MAXAGE=6; SET @ACTIVE=1; SET @MINEDIT=80; SET @MAXEDIT=250; SELECT CONCAT('[[Benutzer:', user_name, ']]') AS Benutzer, REGEXP_REPLACE(user_registration, '^\(....\)\(..\)\(..\).*$', '\\1-\\2-\\3') AS "Angemeldet", REGEXP_REPLACE(MAX(rev_timestamp), '^\(....\)\(..\)\(..\).*$', '\\1-\\2-\\3') AS "letzter Edit", COUNT(rev_page) AS "Anzahl Edits", COUNT(DISTINCT rev_page) AS "geƤnderte Artikel", SUM(rev_parent_id = 0) AS "Neuanlagen" SUM(rev_parent_id = 0 AND page_namespace = 0) AS "Neuanlagen im ANR" FROM user, actor, revision_userindex, page WHERE actor_user = user_id AND rev_actor = actor_id AND page_id = rev_page AND user_registration BETWEEN REPLACE(CURDATE() - INTERVAL @MAXAGE MONTH, '-', '') # Angemeldet vor @MAXAGE Monaten AND REPLACE(CURDATE() - INTERVAL @MINAGE MONTH, '-', '') # Angemeldet bis @MINAGE Moanten AND user_editcount BETWEEN @MINEDIT # Minimale Anzahl Edits AND @MAXEDIT # Maximale Anzahl Edits GROUP BY user_id HAVING MAX(rev_timestamp) > REPLACE(CURDATE() - INTERVAL @ACTIVE MONTH, '-', '') # Nur aktive in den letzten @ACTIVE Monaten
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...