you can create a link table with following structurelinktable--------------------id int identity(1,1),firstname varchar(100), surname varchar(100),postcode varchar(30)then add a newcolumn to main table called linkid intthen insert records to link table using belowinsert linktable (firstname,surname,postcode)select firstname,surname,postcodefrom maintablegroup by firstname,surname,postcodehaving count(*) >1
then using the generated id do update back to main tableupdate tset t.linkid=l.idfrom maintable tinner join linktable lon l.firstname = t.firstname and l.surname = t.surname and l.postcode = t.postcode
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/