I just browse this post and tried all the scripts but still i am not getting what i am expecting.
Here is my table
Name email
BRIAN MAT BRIAN.MAT@abc.Com
BRIAN MAT BRIAN MAT@abc.Com
AMY Lee AMY.Lee@abc.Com
AMY.Lee AMY.Lee@abc.Com
Madison Taylor Madison.Tyl@abc.com
SELECT Name
FROM Employee
GROUP BY Name
HAVING ( COUNT(Name > 1 )
result
BRIAN MAT
SELECT email
FROM Employee
GROUP BY email
HAVING ( COUNT(email> 1 )
Result
AMY.Lee@abc.Com
I was trying to group this two script but it shows blank
SELECT
Name, email,COUNT(*)
FROM
Employee
GROUP BY
Name, email
HAVING
COUNT(*) > 1
Please correct me what i am missing in my script to acheive the result like below
Name email
BRIAN MAT BRIAN.MAT@abc.Com
BRIAN MAT BRIAN MAT@abc.Com
AMY Lee AMY.Lee@abc.Com
AMY.Lee AMY.Lee@abc.Com