| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 데이터 엔지니어
- 백준 온라인 저지
- airflow webserver
- 알고리즘
- Airflow
- BOT
- terraform
- datacamp
- Spark
- 프로그래머스
- 빅데이터를 지탱하는 기술
- Python
- MySQL
- Data Engineering
- delete join
- SQL
- Dynamic Programming
- docker container
- leetcode
- docker image
- airflow architecture
- 백준온라인저지
- Pseudo Lab
- telegram
- docker
- data_engineer
- 그리디
- dsf
- 2023년 목표
- hackerrank
Archives
- Today
- Total
Lim Seunghyun Space
[Leetcode] 183. Customers Who Never Order 본문
문제 출처
Customers Who Never Order - 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
나의 풀이 (not in 사용)
select c.name as Customers
from Customers as c
where c.id not in (select distinct(customerId) from Orders)
나의 풀이(not exists 사용)
select c.name as Customers
from Customers as c
where not exists (select * from Orders as o where c.id = o.customerId)728x90
'SQL > SQL 문제' 카테고리의 다른 글
| [Leetcode] 196. Delete Duplicate Emails (0) | 2022.04.18 |
|---|---|
| [Leetcode] 184. Department Highest Salary (0) | 2022.03.25 |
| [Leetcode] 182. Duplicate Emails (0) | 2022.03.23 |
| [Leetcode] 181. Employees Earning More Than Their Managers (0) | 2022.03.23 |
| [HackerRank] Type of Triangle (0) | 2021.11.30 |