PreacherUK
Technical User
Hi Chaps/Chapettes
Heres what I'm trying to do:
ID_number
507119
507119
507119
506225
506225
703665
703665
703665
We have a system (third party vendor, so we can't make changes to it)
that ids a bulk transaction by a number, for instance 507119. There may
be many allocations/sub transactions. These however do not have a unique
suffix (a quirk of the third party software).
I am looking (preferably) for a set based solution to assigning suffixes
to the above list of ids in the following way:
ID_number Suffix
507119 01
507119 02
507119 03
506225 01
506225 02
703665 01
703665 02
703665 03
So the suffixes increment but only within each of the ids.
I can do this readily enough in MSAccess/VBA with a record set, but was
hoping there was a set based solution.
Many thanks for any help
Heres what I'm trying to do:
ID_number
507119
507119
507119
506225
506225
703665
703665
703665
We have a system (third party vendor, so we can't make changes to it)
that ids a bulk transaction by a number, for instance 507119. There may
be many allocations/sub transactions. These however do not have a unique
suffix (a quirk of the third party software).
I am looking (preferably) for a set based solution to assigning suffixes
to the above list of ids in the following way:
ID_number Suffix
507119 01
507119 02
507119 03
506225 01
506225 02
703665 01
703665 02
703665 03
So the suffixes increment but only within each of the ids.
I can do this readily enough in MSAccess/VBA with a record set, but was
hoping there was a set based solution.
Many thanks for any help