Hello I have next table:
EventID datetime value
1 2012-12-15 12:45:06 15.3
2 2012-12-15 13:00:06 16.9
3 2012-12-15 13:15:06 17.3
4 2012-12-15 13:30:06 16.9
5 2012-12-15 13:45:06 18.8
6 2012-12-15 14:00:06 21.3
7 2012-12-15 14:15:06 21.9
9 2012-12-15 14:30:06 22.7
10 2012-12-15 14:45:06 23.2
11 2012-12-15 15:00:06 23.6
And the conditions are:
value>=15
and value<=20
and this condition must be for a one HOUR or more continuous
for this set of data, query must show (count):
1
alert, corresponding to events ID 1, 2, 3, 4, 5
I try with:
select * from events where value>=15 and value<=
20
but I dont know how I detect a continuous range of one Hour.
Thanks in advance.