What is the best way to determine duplicate records in a SQL Server table?
For instance, I want to find the last duplicate email received in a table (table has primary key, receiveddate and email fields).
Sample data:
1 01/01/2008 [email protected]
2 02/01/2008 [email protected]
3 01/12/2008 [email protected]