Welcome Guest, Not a member yet? Register   Sign In
Calculate Average of time HH:MM MySql Php
#4

(08-27-2018, 03:22 PM)ebaad Wrote:
(08-27-2018, 03:06 PM)php_rocs Wrote: @ebaad,

When you save average time...do you mean by the hour or hour and minutes?

Thanks, I am looking to get average time in HH:MM format to show the Min, Max and Average time to respond on events.

Hello, I hope this helps you:

SELECT SEC_TO_TIME(AVG(TIME_TO_SEC(`hours`))) FROM `table_name`

[Image: tabla_1.PNG]


[Image: tabla_2.PNG]
Reply


Messages In This Thread
RE: Calculate Average of time HH:MM MySql Php - by luiszagaceta - 08-27-2018, 09:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB