Ok, here's the situation:
Table:
Class Seq EffDate RmvDate
2 1 1/1/2003 10/31/2003
3 1 1/1/2003 6/30/2003
3 2 7/1/2003 10/31/2003
If this account has class 2, they must also have class 3.
In the example above, the case is valid, they have class 3 for the entire time the have class 2.
In the example below, they dont have class 3 the entire time. I need to return records, when the case is like the one below? I am having a difficult time puting this query together.
Class Seq EffDate RmvDate
2 1 1/1/2003 10/31/2003
3 1 1/1/2003 6/15/2003
3 2 7/1/2003 10/31/2003
Any help would be appreciated.
-Adam T. Courtney
Stratagem, Inc.
Table:
Class Seq EffDate RmvDate
2 1 1/1/2003 10/31/2003
3 1 1/1/2003 6/30/2003
3 2 7/1/2003 10/31/2003
If this account has class 2, they must also have class 3.
In the example above, the case is valid, they have class 3 for the entire time the have class 2.
In the example below, they dont have class 3 the entire time. I need to return records, when the case is like the one below? I am having a difficult time puting this query together.
Class Seq EffDate RmvDate
2 1 1/1/2003 10/31/2003
3 1 1/1/2003 6/15/2003
3 2 7/1/2003 10/31/2003
Any help would be appreciated.
-Adam T. Courtney
Stratagem, Inc.