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 CONCAT("[[user:",actor.actor_name,"|",actor.actor_name,"]]") AS Thành_viên, memberships AS Nhóm, COUNT(rev_id) AS Sửa_đổi_trong_1_tháng, 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 Sửa_đổi_trong_1_tháng 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...