6
In the case of records containing date and/or time, how to determine that between the first record returned and the others there is always the same interval? Let’s take this example:
Raw data:
TimeStamp | Valor
2019-01-04 14:08:07 | 29062
2019-01-04 15:09:09 | 28937
2019-01-04 15:09:10 | 28937
2019-01-04 15:09:20 | 28937
2019-01-04 15:10:21 | 28937
2019-01-04 15:40:21 | 28875
2019-01-04 16:10:21 | 28812
2019-01-04 16:40:21 | 28812
2019-01-04 17:10:21 | 28812
2019-01-04 17:40:21 | 28812
2019-01-04 18:10:21 | 28687
2019-01-04 18:40:21 | 28625
Processed data:
TimeStamp | Valor
2019-01-04 14:08:07 | 29062
2019-01-04 15:09:09 | 28937
2019-01-04 16:10:21 | 28812
2019-01-04 17:10:21 | 28812
2019-01-04 18:10:21 | 28687
Consider a minimum range of 40 min
What version of
MySQL
?– Sorack
Version of MYSQL: 5.6.35-81.0
– Caio de Paula Silva