summing up time_worked with mysql query [solved]
Posted: Tue Sep 25, 2012 9:58 pm
I'm working on a way to speed up my reporting..
I lost the format of the column type (time) when I add using this mysql query
the result loses the format.. =( not sure how i can keep the format in the query...
looks like this
category / time worked
User Access Requests 586536
I lost the format of the column type (time) when I add using this mysql query
Code: Select all
SELECT `hesk_categories`.`name` AS Category, sum( time_worked ) AS "Time Worked"
FROM hesk_tickets, hesk_categories
WHERE (
hesk_categories.id = hesk_tickets.category)
GROUP BY hesk_categories.name
looks like this
category / time worked
User Access Requests 586536