Possibly someone may ?
Here is my problem. I have a list of members who show up multiple times. My goal is to (1) get the GAPS between "FrmDate" and "ThruDate" by Unique MembID. (2)Tag each unique MembID with 1 or 2 for members withs gaps greater than 45 days.
In example below MembID "1234" would not qualify. So this Membid would have an "0" or "N"
*IS NULL = Still Acitve
-------------------------------------------____RESULTS_____
Membid.....FrmDate...........ThruDate........GAP.....Qualify
1234..........01/01/02..........06/30/03...........0....... 0 or N
1234..........07/15/03..........07/30/03........16........ 0 or N
1234..........08/01/03..........12/31/03...........1....... 0 or N
1234..........02/15/04..........*IS NULL.........45....... 0 or N
9876..........01/01/02..........06/30/03...........0....... 1 or Y
9876..........07/02/03..........*IS NULL...........1....... 1 or Y
4321..........01/01/02..........*IS NULL...........0....... 1 or Y
4321..........07/01/03..........*IS NULL...........0....... 1 or Y
6789..........01/01/02..........06/30/03...........0....... 1 or Y
6789..........01/01/03..........*IS NULL......-180....... 1 or Y
Additional Info: I have everthing in SQL Server and can bring into Access, Excel or Stay in SQL.
Any suggestions would be greatly appreciated!
Thanks!
Here is my problem. I have a list of members who show up multiple times. My goal is to (1) get the GAPS between "FrmDate" and "ThruDate" by Unique MembID. (2)Tag each unique MembID with 1 or 2 for members withs gaps greater than 45 days.
In example below MembID "1234" would not qualify. So this Membid would have an "0" or "N"
*IS NULL = Still Acitve
-------------------------------------------____RESULTS_____
Membid.....FrmDate...........ThruDate........GAP.....Qualify
1234..........01/01/02..........06/30/03...........0....... 0 or N
1234..........07/15/03..........07/30/03........16........ 0 or N
1234..........08/01/03..........12/31/03...........1....... 0 or N
1234..........02/15/04..........*IS NULL.........45....... 0 or N
9876..........01/01/02..........06/30/03...........0....... 1 or Y
9876..........07/02/03..........*IS NULL...........1....... 1 or Y
4321..........01/01/02..........*IS NULL...........0....... 1 or Y
4321..........07/01/03..........*IS NULL...........0....... 1 or Y
6789..........01/01/02..........06/30/03...........0....... 1 or Y
6789..........01/01/03..........*IS NULL......-180....... 1 or Y
Additional Info: I have everthing in SQL Server and can bring into Access, Excel or Stay in SQL.
Any suggestions would be greatly appreciated!
Thanks!