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 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 rev_user AS Användare, COUNT(rev_id) AS Totalt, SUM(rev_timestamp>= DATE_ADD(NOW(),INTERVAL -1 DAY)) AS Senaste_90_dar FROM revision WHERE rev_timestamp > '20170505000000' GROUP BY rev_user ORDER BY rev_user LIMIT 1000; /* 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 Användare, COUNT(revision.rev_id) AS Antal, COUNT(revision.rev_id && revision.rev_timestamp > '20170101000000') AS Detta_år, 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 LIKE 'autopatrolled' GROUP BY user_name ORDER BY user_name LIMIT 100; /* SELECT ug_group AS Grupp user.user_name AS Användare, COUNT(revision.rev_id) AS Antal, 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 LIKE 'bot' GROUP BY user_name ORDER BY user_name LIMIT 100; SELECT ug_group AS Grupp user.user_name AS Användare, COUNT(revision.rev_id) AS Antal, 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 LIKE 'rollbacker' GROUP BY user_name ORDER BY user_name LIMIT 100; SELECT ug_group AS Grupp user.user_name AS Användare, COUNT(revision.rev_id) AS Antal, 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 LIKE 'sysop' GROUP BY user_name ORDER BY user_name LIMIT 100; */
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...