skip to main
|
skip to sidebar
code project
Finding Duplicates with SQL
SELECT email,
COUNT(email) AS NumOccurrences
FROM users
GROUP BY email
HAVING ( COUNT(email) > 1 )
You could also use this technique to find rows that occur exactly once:
SELECT email
FROM users
GROUP BY email
HAVING ( COUNT(email) = 1 )
No comments:
Post a Comment
Home
Subscribe to:
Post Comments (Atom)
Subscribe To Code Project
Posts
Atom
Posts
Comments
Atom
Comments
Followers
IT Jobs and Recruitment Info
Why is Requirements Analysis necessary?
Junior Telecom Officers-(JTO) - 2009
Jobs Search Engine
Flow of G4Test
General Instructions:
The Code Project Latest Articles
Neural networks for regression and their implementation in C#
Part 1: Building an IoT application with a modern variety PIC Microcontroller
Episode 5: Game Rules and Mechanics - Part 2
Creating a Heatmap Chart in React Using CanvasJS StackedColumn100 Chart
Episode 4: Game Rules and Mechanics - Part 1
Blog Archive
▼
2009
(1)
▼
April
(1)
Finding Duplicates with SQL
About Me
Pankaj Deharia
View my complete profile
MOBILE INFORMATION
Search For New Mobiles
What you need to know about VoIP phone service
AT&T's 3G Network on Schedule
Advantages of WiMax
No comments:
Post a Comment