728x90

https://leetcode.com/problems/duplicate-emails/submissions/

 

Duplicate Emails - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

 

[problem]

email데이터 중복없이 정보 출력하기

[analysis]

1. 중복된 이메일 제외 위해서 email로 group by 해줌

2. having count email >1 (2이상이면 중복임)

* having은 group by에서 연산한 결과물에 조건을 줄 때 사용 where과는 다르다.

 

[solution]

728x90

+ Recent posts