Hello all
I'm attempting to filter a table of machines and alarms to remove all the same alarms on a machine that occur within 2 minutes of each other. The basic table stucture is this.
Machine Alarm Time
1 Door Open 1/1/2006 07:00:00 AM
1 Door Open 1/1/2006 07:01:00 AM
1 Door Open 1/1/2006 07:15:00 AM
1 Process Stopped 1/3/2006 07:56:00 AM
2 Watchdog timer 1/5/2006 07:00:00 AM
2 CPU Reset 1/3/2006 07:00:00 AM
Is it possible to write a query to where it would return just the 2 Door Open rows that were within 2 minutes of eachother. I've been fighting through doing it in code to filter my results but its not not working too well.
I'm attempting to filter a table of machines and alarms to remove all the same alarms on a machine that occur within 2 minutes of each other. The basic table stucture is this.
Machine Alarm Time
1 Door Open 1/1/2006 07:00:00 AM
1 Door Open 1/1/2006 07:01:00 AM
1 Door Open 1/1/2006 07:15:00 AM
1 Process Stopped 1/3/2006 07:56:00 AM
2 Watchdog timer 1/5/2006 07:00:00 AM
2 CPU Reset 1/3/2006 07:00:00 AM
Is it possible to write a query to where it would return just the 2 Door Open rows that were within 2 minutes of eachother. I've been fighting through doing it in code to filter my results but its not not working too well.