I have a table named visitantes
in it I enter the hora_que_entrou
and hora_que_saiu
of my user on my site.
These are in DATETIME
format.
I would like to run the average that they spent online, is it possible without using another programming language?
I tried something like:
SELECT AVG(hora_que_entrou - hora_que_saiu) FROM 'visitantes'
But I did not succeed.