SELECT email,
COUNT(email) AS NumOccurrences
FROM users
GROUP BY email
HAVING ( COUNT(email) > 1 )
Sunday, October 26, 2008
Finding Duplicates with sql
Subscribe to:
Post Comments (Atom)
Eclipse,Netbeans,Java,PHP,C/C++/C#,.NET,Visual Studio
SELECT email,
COUNT(email) AS NumOccurrences
FROM users
GROUP BY email
HAVING ( COUNT(email) > 1 )
0 comments:
Post a Comment