Thread
:
Find duplicate entries in a table?
View Single Post
#
2
(
permalink
)
04-17-2006, 01:38 AM
ben
Administrator
Join Date: Mar 2007
Posts: 87
SQL 92
answer.
Re: Find duplicate entries in a table?
Let's assume we want to find duplicate emails in a 'users' table:
[sql]
SELECT id, email, count(email) FROM users GROUP BY email HAVING count(email) > 1
[/sql]
ben
View Public Profile
Send a private message to ben
Find all posts by ben