Viewing 3 posts - 1 through 3 (of 3 total)
Try this script in Query analyser
BEGIN TRANSACTION T1
SELECT DISTINCT * INTO TempTable FROM MainTable GROUP BY SSN HAVING COUNT(*) > 1
DELETE MainTable WHERE SSN IN (SELECT SSN From TempTable)
INSERT INTO...
August 12, 2004 at 9:56 pm
#518796
Good introduction for me about SQL Server. The article gives me a footstep for me to SQL Server 2005. SHORT and SWEET.
August 11, 2004 at 2:30 am
#518429
SELECT * FROM Orders WHERE OrderID IN (4+1, 4-1)
August 10, 2004 at 9:53 pm
#518403