select cnt_num, sum(points) as total_points, count(cnt_num) as num_activity from TableName Group By cnt_num;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)