45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




finding records with duplicate emails

        

Reply
 
LinkBack Thread Tools Display Modes
Old 24-12-08, 03:33 PM   #1 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 Billy1234 is on a distinguished road
Question finding records with duplicate emails

I'm trying to find records in an employee DB that have matching email addresses
The below SQL returns duplicate email addresses and count.
How may I get a list with EMP.Name and email address of those with matching email addresses?

SELECT EMP.EMAIL_ADDRESS,
COUNT (EMP.EMAIL_ADDRESS) AS NumOccurences
FROM EMP
GROUP BY EMP.EMAIL_ADDRESS
HAVING ( COUNT(EMP.EMAIL_ADDRESS) >1 )

Billy1234 is offline Offline   Reply With Quote
Reply

Tags
duplicate , emails , finding , records


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mega Free Download S/W Links A-Z yathish OTHERS 516 21-03-09 10:06 AM
How to remove the duplicate records ShivaniX Cobol 0 29-05-08 03:22 AM
In the source, if we also have duplicate records and Shailu07 Informatica 0 01-05-08 01:02 PM
How To Delete duplicate records in the emp table? radhika743 ORACLE , SQL SERVER , SYBASE & Others 1 05-12-07 12:20 PM
Need SQL to find duplicate records? sk_kireeti ORACLE , SQL SERVER , SYBASE & Others 2 08-04-06 06:28 AM


All times are GMT +6.5. The time now is 12:57 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0