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
Aram
.
Toggle Highlighting
SQL
USE ckbwiki_p; SELECT actor_name AS Username, MAX(rev_timestamp) AS LastEditDate, SUM(edits.Count) AS NumberOfEdits, GROUP_CONCAT(DISTINCT actor_user_groups.ug_group) AS BotGroups, user_registration AS RegistrationDate FROM actor JOIN user ON actor_user = user_id LEFT JOIN user_groups AS actor_user_groups ON user_id = actor_user_groups.ug_user LEFT JOIN ( SELECT rev_actor, COUNT(*) AS Count FROM revision GROUP BY rev_actor ) AS edits ON actor_id = edits.rev_actor WHERE actor_user_groups.ug_group LIKE '%bot%' GROUP BY Username HAVING MAX(rev_timestamp) >= DATE_FORMAT(NOW() - INTERVAL 6 MONTH, '%Y%m%d%H%i%s') -- Change '6 MONTH' to the desired activity threshold ORDER BY LastEditDate DESC;
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...