Snoopy [리트코드/SQL] 30. Duplicate Emalis (182)
코딩테스트/리트코드 SQL

[리트코드/SQL] 30. Duplicate Emalis (182)

Sooyoon Jeong 2022. 12. 23.

🤔 문제 분석

1) Write an SQL query to report all the duplicate emails.

2) Return the result table in any order.

 

💡 풀이

select Email
FROM Person
group by Email
having count(*) > 1

댓글