G
Guest
I want to run some type of query that will concatenate values from three
fields: NG2, Corner, and typecode in another field called XPS_name.
I then want the query to check for duplicates in the XPS_name field.
Whenever there are duplicates, the query should then iteratively assign
values a-z the respective Corner fields, and then re-concatenate to derive a
unique XPS_name.
For example:
two records have NG2= ABC001, Corner=1n, and typecode = c. The first step
will concatenate the XPS_name to "ABC0011nc" for both records. The second
step will find these duplicate entries, the next step will re-assign the
corner field of the first entry to "a" and the second entry to "b". The next
step will re-concatenate. It would also be nice to create a table of all of
the renamed entries. I know how to concatenate and find duplicate entries,
but i don't know how to iteratively assign new values to records that end up
in the duplicate table and i don't know how to create a new table from the
records that are getting updated XPS_name values.
As always all help is appreciated. Thank you, Ruben.
fields: NG2, Corner, and typecode in another field called XPS_name.
I then want the query to check for duplicates in the XPS_name field.
Whenever there are duplicates, the query should then iteratively assign
values a-z the respective Corner fields, and then re-concatenate to derive a
unique XPS_name.
For example:
two records have NG2= ABC001, Corner=1n, and typecode = c. The first step
will concatenate the XPS_name to "ABC0011nc" for both records. The second
step will find these duplicate entries, the next step will re-assign the
corner field of the first entry to "a" and the second entry to "b". The next
step will re-concatenate. It would also be nice to create a table of all of
the renamed entries. I know how to concatenate and find duplicate entries,
but i don't know how to iteratively assign new values to records that end up
in the duplicate table and i don't know how to create a new table from the
records that are getting updated XPS_name values.
As always all help is appreciated. Thank you, Ruben.