I am trying to write a query to return the sum of call time for each specific category. There are only 3 categories and i only want 3 rows to be returned with the sum of time. I thought using the distinct would work, but it also applies to the minutes too.
How can I manipulate this query to only be distinct on category?
SELECT DISTINCT
category, SUM(calltime)
FROM
table