Hi,
I have a cursor that is being used to create an output file.
I want to use the same cursor to retieve values for one of the fields within the cursor The field is called NAME and what I am trying to do is to change the NAME if any two or more are alike. If any of the NAMES are the same I want to put a number at the end of it and update the record from before putting it into the output file. The first occurence of the name would not have a number at the end, the next occurrence of the name will be 2, and the next 3, etc. I am not sure how to do this. Will a temporary table to needed?
Annette
I have a cursor that is being used to create an output file.
I want to use the same cursor to retieve values for one of the fields within the cursor The field is called NAME and what I am trying to do is to change the NAME if any two or more are alike. If any of the NAMES are the same I want to put a number at the end of it and update the record from before putting it into the output file. The first occurence of the name would not have a number at the end, the next occurrence of the name will be 2, and the next 3, etc. I am not sure how to do this. Will a temporary table to needed?
Annette