I have a sql script below that deletes duplicate customers by LASTNAME only. If you could help fill in the correct syntax to allow duplicate customers deleted by FIRSTNAME and LASTNAME.
SQL lastname only script:
DELETE Customer FROM Customer INNER JOIN (SELECT MIN(ID) AS MinID, MAX(ID) AS MaxID FROM Customer WHERE Lastname IN (SELECT Lastname FROM Customer GROUP BY Lastname HAVING COUNT(Lastname) > 1) GROUP BY Lastname) a ON Customer.ID = a.MaxID WHERE Customer.ID = a.MaxID
Thanks for your help Dave