S
sa02000
I have data in following format. Data is sorted by column1 first and
Column3 second. Now I would like to extract values in column4 for the
rows with max value in column3 for a given group in column1. So in the
data below I would like to extract rows 1,4 and 9. Obviously I have
thousands of rows with different sets of data to do this for.
Column1 Column2 Column 3 Column 4
A 567 5 abc
A 568 2 gbv
A 453 1 gfh
B 546 25 ght
B 256 15 rte
B 265 5 rtw
B 325 2 tyr
B 315 1 riu
C 246 56 ade
C 234 55 jff
C 342 32 hgf
C 651 12 dfd
Jay
Column3 second. Now I would like to extract values in column4 for the
rows with max value in column3 for a given group in column1. So in the
data below I would like to extract rows 1,4 and 9. Obviously I have
thousands of rows with different sets of data to do this for.
Column1 Column2 Column 3 Column 4
A 567 5 abc
A 568 2 gbv
A 453 1 gfh
B 546 25 ght
B 256 15 rte
B 265 5 rtw
B 325 2 tyr
B 315 1 riu
C 246 56 ade
C 234 55 jff
C 342 32 hgf
C 651 12 dfd
Jay