Hey,
I have a table with 400,000 records. It has a bunch of fields of which two are of interest to me.
One is called User_ID and the other is sequence_num
In this table I could have one unique ID displayed 200 times but each occurence of it will have a unique sequence number.
for example:
User_ID sequence_num
22222222 150001
22222222 150002
22222222 150003
22222222 150004
33333333 174100
33333333 174101
66666666 220006
66666666 220007
and so on.
I need to be able to automatically extract the record containing largest sequence_number for each user_id. So my table should look like this when it is all done:
User_ID sequence_num
22222222 150004
33333333 174101
66666666 220007
thanks!
j
I have a table with 400,000 records. It has a bunch of fields of which two are of interest to me.
One is called User_ID and the other is sequence_num
In this table I could have one unique ID displayed 200 times but each occurence of it will have a unique sequence number.
for example:
User_ID sequence_num
22222222 150001
22222222 150002
22222222 150003
22222222 150004
33333333 174100
33333333 174101
66666666 220006
66666666 220007
and so on.
I need to be able to automatically extract the record containing largest sequence_number for each user_id. So my table should look like this when it is all done:
User_ID sequence_num
22222222 150004
33333333 174101
66666666 220007
thanks!
j