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
Larske
.
Number of edits at svwp, total and last 90 days, by different user groups.
Toggle Highlighting
SQL
USE svwiki_p; SELECT NOW() AS Rapporten_körs_UTC; SELECT ug_group AS Grupp, COUNT(ug_user) AS Antal FROM user_groups WHERE ug_group IN ('sysop','rollbacker','autopatrolled','bot') GROUP BY ug_group ORDER BY ug_group; /* SELECT user.user_name AS Användare, COUNT(recentchanges.rc_id) AS Antal, MIN(recentchanges.rc_timestamp) AS Första, MAX(recentchanges.rc_timestamp) AS Senaste FROM user_groups #recentchanges.rc_title, recentchanges.rc_timestamp FROM user_groups INNER JOIN user ON user_groups.ug_user = user.user_id INNER JOIN recentchanges ON user.user_id = recentchanges.rc_user WHERE ug_group LIKE 'autopatrolled' # 'bot' 'rollbacker' 'sysop' GROUP BY user_name ORDER BY user_name LIMIT 100 */ SELECT user.user_name AS Autopatrullerade, COUNT(revision.rev_id) AS Antal, SUM(rev_timestamp>= DATE_ADD(NOW(),INTERVAL -90 DAY)) AS Senaste90d, MIN(revision.rev_timestamp) AS Första, MAX(revision.rev_timestamp) AS Senaste FROM user_groups INNER JOIN user ON user_groups.ug_user = user.user_id INNER JOIN revision ON user.user_id = revision.rev_user WHERE ug_group = 'autopatrolled' GROUP BY user_name ORDER BY user_name; SELECT user.user_name AS Robotar, COUNT(revision.rev_id) AS Antal, SUM(rev_timestamp>= DATE_ADD(NOW(),INTERVAL -90 DAY)) AS Senaste90d, MIN(revision.rev_timestamp) AS Första, MAX(revision.rev_timestamp) AS Senaste FROM user_groups #recentchanges.rc_title, recentchanges.rc_timestamp FROM user_groups INNER JOIN user ON user_groups.ug_user = user.user_id INNER JOIN revision ON user.user_id = revision.rev_user WHERE ug_group = 'bot' GROUP BY user_name ORDER BY user_name; SELECT user.user_name AS Tillbakarullare, COUNT(revision.rev_id) AS Antal, SUM(rev_timestamp>= DATE_ADD(NOW(),INTERVAL -90 DAY)) AS Senaste90d, MIN(revision.rev_timestamp) AS Första, MAX(revision.rev_timestamp) AS Senaste FROM user_groups #recentchanges.rc_title, recentchanges.rc_timestamp FROM user_groups INNER JOIN user ON user_groups.ug_user = user.user_id INNER JOIN revision ON user.user_id = revision.rev_user WHERE ug_group = 'rollbacker' GROUP BY user_name ORDER BY user_name; SELECT user.user_name AS Administratörer, COUNT(revision.rev_id) AS Antal, SUM(rev_timestamp>= DATE_ADD(NOW(),INTERVAL -90 DAY)) AS Senaste90d, MIN(revision.rev_timestamp) AS Första, MAX(revision.rev_timestamp) AS Senaste FROM user_groups #recentchanges.rc_title, recentchanges.rc_timestamp FROM user_groups INNER JOIN user ON user_groups.ug_user = user.user_id INNER JOIN revision ON user.user_id = revision.rev_user WHERE ug_group = 'sysop' GROUP BY user_name ORDER BY user_name; SELECT NOW() AS Rapporten_klar_UTC;
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...