J
Jim_R
I have a SQL database which contains records of all students in my district.
The fields include, school, firstname, lastname, etc. and I want to create
user accounts based on the first name. I would like to run a query that would
take the first name and transform it into a user account name by adding a 1
to it. If there were duplicate first names, it would add a 1 then a 2, so
that each name would be unique:
Jim1
Jim2
Jim3
Jim4
Sally1
Bill1
Dave1
Dave2
How woulld you construct such a query? I see a loop inside a loop.
Jim_R
The fields include, school, firstname, lastname, etc. and I want to create
user accounts based on the first name. I would like to run a query that would
take the first name and transform it into a user account name by adding a 1
to it. If there were duplicate first names, it would add a 1 then a 2, so
that each name would be unique:
Jim1
Jim2
Jim3
Jim4
Sally1
Bill1
Dave1
Dave2
How woulld you construct such a query? I see a loop inside a loop.
Jim_R