Hello all
I have trying to figure this out. I'm required to retrieve records that are dependent on the outcome of the
other records in the same table. Here is an example.
Key1 Key2 data
100 01.01.1999 A
100 12.06.2001 B
100 31.12.2999 Z
200 02.07.2000 D
200 03.06.2001 D
200 12.11.2002 E
200 31.12.2999 Z
I would like to retrieve 100 12.06.2001 B and 200 12.11.2002 E. They are just 1 record before 31.12.2999 Z which is the terminating records for key1.
Any help would be appreciated.
Thank you.
Kind regards
Simone
I have trying to figure this out. I'm required to retrieve records that are dependent on the outcome of the
other records in the same table. Here is an example.
Key1 Key2 data
100 01.01.1999 A
100 12.06.2001 B
100 31.12.2999 Z
200 02.07.2000 D
200 03.06.2001 D
200 12.11.2002 E
200 31.12.2999 Z
I would like to retrieve 100 12.06.2001 B and 200 12.11.2002 E. They are just 1 record before 31.12.2999 Z which is the terminating records for key1.
Any help would be appreciated.
Thank you.
Kind regards
Simone