🤔 문제 분석
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
'코딩테스트 > 리트코드 SQL' 카테고리의 다른 글
[리트코드/SQL] 32. Bank Account Summary II (1587) (0) | 2023.02.14 |
---|---|
[리트코드/SQL] 31. Actors and Directors Who Cooperated At Least Three Times (1050) (0) | 2023.02.14 |
[리트코드/SQL] 28. Top Travellers (1407) (0) | 2022.12.23 |
[리트코드/SQL] 27. Capital Gain/Loss(1393) (0) | 2022.12.21 |
[리트코드/SQL] 26. Find Total Time Spent by Each Employee (1741) (0) | 2022.12.21 |
댓글