Hi again,
Sorry I forgot to include the table
I have this table where I am trying to compare ChgDt.
I want to see a record that is higher than the one on top of it.
example: the only one I want to see in the case below is srn3 because its ChgDt is higher than srno2 ChgDt.
mbrrecid srno ChgDt
00115005501 1 20041209
00115005501 2 20040218
00115005501 3 20041214
00115005501 4 20011205
00115005501 5 20010101
00115005501 6 19991219
00115005501 7 19960313
00115005501 8 19951210
00115005501 9 19920630
00115005501 10 19920403
srno1 ChgDt is higher than 2 (Skip)
srno2 ChgDt is lower than 3 (I want to see this record)
srno4 ChgDt is hihger than 5 (Skip)
etc....
Is there a formula I can use. Thanks in advance
Sorry I forgot to include the table
I have this table where I am trying to compare ChgDt.
I want to see a record that is higher than the one on top of it.
example: the only one I want to see in the case below is srn3 because its ChgDt is higher than srno2 ChgDt.
mbrrecid srno ChgDt
00115005501 1 20041209
00115005501 2 20040218
00115005501 3 20041214
00115005501 4 20011205
00115005501 5 20010101
00115005501 6 19991219
00115005501 7 19960313
00115005501 8 19951210
00115005501 9 19920630
00115005501 10 19920403
srno1 ChgDt is higher than 2 (Skip)
srno2 ChgDt is lower than 3 (I want to see this record)
srno4 ChgDt is hihger than 5 (Skip)
etc....
Is there a formula I can use. Thanks in advance