Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 439 Bytes

Duplicate Emails.md

File metadata and controls

17 lines (11 loc) · 439 Bytes

Hints

Use GROUP BY on Email to see how many of each Id there exists for each email.

Use the HAVING clause since the WHERE clause doesn't support aggregate functions

MySQL Solution

SELECT Email FROM Person
GROUP BY Email
HAVING Count(Email) > 1

Links