If you want to get the sum of all charges on a ticket, you can do this:
SELECT tickets.subject, TIME_FORMAT(SEC_TO_TIME(SUM(tickets.charges.charge_time)), '%Hh %im') AS 'Charge Time'
GROUP BY tickets.id AS 'ID'
19 of 36 people found this page helpful
Please log in or register to submit a comment.