SELECT DISTINCT * INTO TempTable FROM Temp
GROUP BY FirstName,Description,Id
HAVING COUNT(FirstName) > 1
select Temp WHERE FirstName
IN (SELECT FirstName FROM TempTable)
DELETE Temp WHERE FirstName
IN (SELECT FirstName FROM TempTable)
INSERT Temp SELECT * FROM TempTable
DROP TABLE TempTable
|