Hello,
DB2 for iSeries - V5R2
I have a table with a non-unique index, column name SEDOL.
I need to extract the 2nd row from each set of SEDOL rows in the table.
If only one SEDOL row exists then select that one row.
As an example:
SEDOL STATUS
10000 A
10001 A
10001 B
10001 C
10001 D
10050 A
10050 B
10051 A
10100 A
10100 B
So, I need to extract
10000 A
10001 B
10050 B
10051 A
10100 B
Suggestions on how I do this would be welcome.
Thanks
Glenn
DB2 for iSeries - V5R2
I have a table with a non-unique index, column name SEDOL.
I need to extract the 2nd row from each set of SEDOL rows in the table.
If only one SEDOL row exists then select that one row.
As an example:
SEDOL STATUS
10000 A
10001 A
10001 B
10001 C
10001 D
10050 A
10050 B
10051 A
10100 A
10100 B
So, I need to extract
10000 A
10001 B
10050 B
10051 A
10100 B
Suggestions on how I do this would be welcome.
Thanks
Glenn
Comment