I want to calculate moving average with a datetime over a 7 days period, the dataset is in 10 timestep.Im running sql-server 2008. The data is like this:
+-------------------------+--------+--+
| DATE | Checks | |
+-------------------------+--------+--+
| 2018-10-03 16:00:00.000 | 5 | |
| 2018-10-03 16:10:00.000 | 8 | |
+-------------------------+--------+--+
And I want to forecast how many checks will be a threshold today at a given time. Any ideas? Thank you.