Fork of 2014年のjawikiにおける感謝ランキング(贈った人数) by 軽快
This query is marked as a draft This query has been published by 軽快.

SQL

AخA
 
USE jawiki_p;
SELECT user_name AS 利用者名, user_editcount AS 投稿回数, DATE_FORMAT(DATE(user_registration), "%Y-%m-%d") AS 登録日,
DATE_FORMAT(DATE(user_registration), "%Y-%m-%d") AS 登録日, GROUP_CONCAT(ug_group) AS 現在の権限
GROUP_CONCAT(ufg_group) AS 過去の権限
FROM (user join user_former_groups on user_id = ufg_user)
           join user_groups on user_id = ug_user
#where (ufg.ufg_group != "bot" OR ufg.ufg_group IS NULL)and(ug.ug_group != "bot" OR ug.ug_group IS NULL)
where user_name = "軽快"
GROUP BY user_id, user_name, user_editcount, user_registration
order by user_editcount desc
LIMIT 10
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...