SELECT
u.login,
u.name,
SUMM(pu.pointsCount) as pointsCount,
p.pointKey
FROM
user u,
point_user pu,
point p
WHERE
u.userId = pu.userId AND
pu.pointId = p.pointId
ORDER BY u.login
GROUP BY
u.login,
p.pointKey