I am looking for a method to find all records of those who "qualified" for 3 or more CONSECUTIVE months. If an employee "qualified" in a particular month there will be a record in the table with the month and their ID. If they did not qualify--no record.
MyTable:
ID Month
Emp1 Jan99
Emp1 Feb99
Emp1 Aug99
Emp1 Sep99
Emp1 Oct99
Emp2 Feb98
Emp2 Apr99
.....
Above Emp1 would be returned for appearing in Aug,Sep,Oct while Emp2 misses the Bonus. I'm not interested gaps in time or the total months of "qualification", just if there was a period of 3 CONSECUTIVE months anywhere in their history.
Thanks in advance for any suggestions
MyTable:
ID Month
Emp1 Jan99
Emp1 Feb99
Emp1 Aug99
Emp1 Sep99
Emp1 Oct99
Emp2 Feb98
Emp2 Apr99
.....
Above Emp1 would be returned for appearing in Aug,Sep,Oct while Emp2 misses the Bonus. I'm not interested gaps in time or the total months of "qualification", just if there was a period of 3 CONSECUTIVE months anywhere in their history.
Thanks in advance for any suggestions