I'm basically logging data to an SQL database every minute, but I want to be able to check to see if there are any entries missing (ie: see if there are any differences greater than a minute).
Take this for example:
5 4 2 1
I would want to display the rows where the 4 and 2 exist so that I know there is something missing between. The actual data is in the following format.
date_time
2010-09-12 10:45:00
2010-09-12 10:44:00
etc..
I have discovered how to extract the minute value using EXTRACT(MINUTE FROM date_time) however I'm quite lost as to how to do a comparison over the whole table.
Any help would be awesome.
Thanks