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 | 31 |
Tags
- PYTHON
- 교차 엔트로피
- 선형 모형
- branch
- coding
- 깃헙협업
- 코딩공부
- HTML
- programmers
- CSS
- RLIKE
- 온라인협업
- full request
- hackerrank
- AWS
- github
- mysql
- window function
- sql
- early stopping
- 클라우드컴퓨팅
- L2정규화
- elastic net
- L1정규화
- 버전충돌
- conflict
- merge
- Git
- 편향-분산 교환
- leetcode
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