I have the following query in MSSQL:
select TRANSACTION_TYPE_ID ,COUNT(TRANSACTION_TYPE_ID)AS NUMBER_OF_TRANSACTIONS ,CAST(SUM(AMOUNT)AS DECIMAL (30,2)) AS TOTA
One way would be to convert the time to seconds, calculate the average, and then convert it back to hours, minutes and seconds for the result.