DT
Size: a a a
DT
AK
С
С
AK
AK
AK
AK
AK
SELECT
ROW_NUMBER() OVER (ORDER BY SUM(p.points) DESC) AS rank,
CASE WHEN
p.clan = '' THEN '[no clan specified]' ELSE p.clan
END as clan,
SUM(p.points) as total_points,
COUNT(p.name) as total_people
FROM people p
GROUP BY p.clan
ORDER BY total_points DESC
AK
AK
AK
AK
С
AK
DT
AK
AK