假设你的字段名为:name, date, category, number
SQL语句如下:SELECT name, category, sum(number) from work group by name, category order by name, category