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 [email protected]
BRIAN MAT BRIAN [email protected]
AMY Lee [email protected]
AMY.Lee [email protected]
Madison Taylor [email protected]
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
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 [email protected]
BRIAN MAT BRIAN [email protected]
AMY Lee [email protected]
AMY.Lee [email protected]