Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- 선형 모형
- window function
- L2정규화
- 깃헙협업
- 교차 엔트로피
- 클라우드컴퓨팅
- RLIKE
- 편향-분산 교환
- AWS
- 온라인협업
- mysql
- programmers
- coding
- conflict
- full request
- leetcode
- hackerrank
- L1정규화
- sql
- HTML
- 코딩공부
- elastic net
- Git
- CSS
- branch
- early stopping
- PYTHON
- github
- merge
- 버전충돌
Archives
- Today
- Total
Im between cherry
Leet Code | MySQL | 196. Delete Duplicate Emails 본문
196. Delete Duplicate Emails
https://leetcode.com/problems/delete-duplicate-emails/
Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.
DELETE p1
FROM person p1
INNER JOIN person p2 ON p1.email = p2.email
WHERE p1.Id > p2.Id
'데이터분석 > practice_query' 카테고리의 다른 글
Leet Code | MySQL | 184. Department Highest Salary (0) | 2020.08.30 |
---|---|
Leet Code | MySQL | 180. Consecutive Numbers (0) | 2020.08.30 |
Leet Code | MySQL | 627. Swap Salary (0) | 2020.08.30 |
Leet Code | MySQL | 181. Employees Earning More Than Their Managers (0) | 2020.08.30 |
Hackerrank | MySQL | The Report (0) | 2020.08.30 |
Comments