Mysql
 sql >> Database >  >> RDS >> Mysql

MySQL:ottieni la media delle differenze di orario?

SELECT  DATE(start) AS startdate, AVG(TIME_TO_SEC(TIMEDIFF(end,start))) AS timediff
FROM    Sessions
GROUP BY
        startdate