N
N
NewPHPCoder2020-06-04 20:23:00
PHP
NewPHPCoder, 2020-06-04 20:23:00

How to calculate the average time spent in the network?

You need to find the total average time spent on the network and time per day. Let's say I have a table `active` with a large amount of data and it has two columns `login` and `logout`. Both columns store the time in UNIX format. How can I calculate the total time spent on the network, using as little resources as possible, since the amount of data is quite large?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2020-06-04
@NewPHPCoder

avg(logout - login)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question