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
NhacNy2412
.
2021-11-15
Toggle Highlighting
SQL
WITH groups AS ( SELECT ug_user, GROUP_CONCAT(ug_group) AS memberships FROM user_groups GROUP BY ug_user) SELECT actor.actor_name AS thành_viên, memberships AS nhóm, COUNT(rev_id) AS lần_sửa_đổi, user_editcount AS tổng_số_sửa_đổi FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id) LEFT JOIN groups ON (actor.actor_user = groups.ug_user) LEFT JOIN user ON (actor.actor_name = user.user_name) -- Lọc theo thời gian WHERE DATEDIFF(CURDATE(), rev_timestamp) < 30 -- Lọc ra IP AND actor.actor_user IS NOT NULL -- Lọc ra bot AND (groups.memberships IS NULL OR LOCATE('bot', memberships) = 0) -- Group by user. GROUP BY thành_viên -- Giới hạn 200 người có số sửa đổi cao nhất ORDER BY lần_sửa_đổi DESC LIMIT 200;
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...