I have exam data for which I want to keep only the highest score for each ID by subject.
Sample input:
bytes 1-9 represent the ID, 10-12 subject, 13-22 date, and 23-25 score (scores are character fields because they contain the values 000-100 and bbP, bbF, and Wbb (bbP is a higher score than Wbb, Wbb is a higher score than bbF; bbP is equivalent to scores GE 055, bbF is equivalent to scores LE 054).
12345678904806/10/2004065
12345678904801/10/2003048
12345678904806/10/2005086
12345678905901/10/2003bbP
12345678905906/10/2002bbF
12345678905901/10/2005bbW
98765432120306/10/2002000
98765432120306/10/2003025
98765432120301/10/2003048
98765432130406/10/2005Wbb
98765432130401/10/2006bbF
Desired output
12345678904806/10/2005086
12345678905901/10/2003bbP
98765432120301/10/2003048
98765432130406/10/2005Wbb
I tried using ICETOOL SELECT operator, but couldn't get it to work. Any suggestions would be greatly appreciated.
Thanks.
Cindy