1
I have a table named visitantes
in it I insert the hora_que_entrou
and the hora_que_saiu
of my user on my website.
These are in format DATETIME
.
I would like to run the average they passed onlines, it is possible this without resorting to another programming language?
I tried something like:
SELECT AVG(hora_que_entrou - hora_que_saiu) FROM `visitantes`
But I didn’t succeed.
You had question about the result and then deleted. I edited to complement what you had asked.
– Maniero
But this p/ accept if given.
– Maniero