I am using SQL Server 2000, I have a situation where I am copying data over from one table to another, the destination data table requires each Name row to be unique. Here is a quick example of my issue
Source table
RowID | Name
1 A
2 B
3 B
4 B
5 C
6 D
7 C
What I want to do is turn it in to this
Destination table
RowID | Name
1 A
2 B
3 B(2)
4 B(3)
5 C
6 D
7 C(2)
The Name column is a varchar(40), any idea on how do to it, I have 2561 rows that have duplicates so doing it by hand is not a option.
Any ideas on where to begin?