일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- git
- BOJ
- C#
- 보안
- condition
- vuetify
- C++
- dotenv
- 앙상블
- var
- AI
- machine learning
- property
- bash
- leetcode
- TypeScript
- type
- VUE
- scss
- webpack
- npm
- loop
- security
- Python
- docker
- generic
- Clone
- JavaScript
- vue.js
- nginx
Archives
- Today
- Total
ice rabbit programming
[LeetCode] Delete Duplicate Emails 본문
728x90
https://leetcode.com/problems/delete-duplicate-emails/
Delete 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
중복 email을 제거하는 문제이다. 처음에는 SELECT에서 중복을 없애고 조회하는 쿼리를 짰었는데, 이상해서 다시 살펴보니 DELETE 쿼리를 날려야 하는 문제였다...
DELETE b
FROM Person a, Person b
WHERE a.Email = b.Email
AND a.Id < b.Id;
728x90
'PS > LeetCode' 카테고리의 다른 글
[LeetCode] May Challenge 5 - First Unique Character in a String (0) | 2020.05.05 |
---|---|
[LeetCode] May Challenge 3 - Ransom Note (0) | 2020.05.04 |
[LeetCode] May Challenge 2 - Jewels and Stones (0) | 2020.05.03 |
[LeetCode] Second Highest Salary (0) | 2020.05.01 |
[LeetCode] May Challenge 1 - First Bad Version (0) | 2020.05.01 |