How do I find duplicate records?
I have an employee table. I need to find and delete all the records that
have the ssn and taxyear records duplicated. For example:
rec name ssn taxyear
--- ---- --- -------
1 John Doe 111-11-1111 1999
2 John Doe 111-11-1111 2000
3 John Doe 111-11-1111 1999
I need to find and delete record number 3.
Can anyone help? Thanks!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL