Hello,
I would like to know if it is possible (and if so how) to write a query to do the following.
I want to search a table of data and return ranges with missing data as follows.
The result from the query would be a series of ranges where the value was -8888, e.g.
2009-07-13 00:00:03 - 2009-07-13 00:00:03
2009-07-13 00:00:07 - 2009-07-13 00:00:08
2009-07-13 00:00:11 - 2009-07-13 00:00:13
2009-07-13 00:00:22 - 2009-07-13 00:00:22
Is this possible?
Any assistance would be appreciated.
Regards
Andrew
I would like to know if it is possible (and if so how) to write a query to do the following.
I want to search a table of data and return ranges with missing data as follows.
Code:
DateTime Record Result 2009-07-13 00:00:00 1 2009-07-13 00:00:01 2 2009-07-13 00:00:02 4 2009-07-13 00:00:03 -8888 2009-07-13 00:00:04 2 2009-07-13 00:00:05 5 2009-07-13 00:00:06 6 2009-07-13 00:00:07 -8888 2009-07-13 00:00:08 -8888 2009-07-13 00:00:09 2 2009-07-13 00:00:10 2 2009-07-13 00:00:11 -8888 2009-07-13 00:00:12 -8888 2009-07-13 00:00:13 -8888 2009-07-13 00:00:14 2 2009-07-13 00:00:15 2 2009-07-13 00:00:16 2 2009-07-13 00:00:17 2 2009-07-13 00:00:18 2 2009-07-13 00:00:19 2 2009-07-13 00:00:20 2 2009-07-13 00:00:21 2 2009-07-13 00:00:22 -8888
2009-07-13 00:00:03 - 2009-07-13 00:00:03
2009-07-13 00:00:07 - 2009-07-13 00:00:08
2009-07-13 00:00:11 - 2009-07-13 00:00:13
2009-07-13 00:00:22 - 2009-07-13 00:00:22
Is this possible?
Any assistance would be appreciated.
Regards
Andrew
Comment