일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- property
- C#
- BOJ
- VUE
- type
- git
- condition
- scss
- npm
- nginx
- JavaScript
- security
- C++
- 앙상블
- var
- vuetify
- loop
- docker
- dotenv
- generic
- machine learning
- bash
- TypeScript
- vue.js
- leetcode
- AI
- 보안
- Python
- Clone
- webpack
Archives
- Today
- Total
ice rabbit programming
[LeetCode] Customers Who Never Order 본문
https://leetcode.com/problems/customers-who-never-order/
SQL을 사용하는 문제를 간만에 풀었다. 어려운 문제는 아니고 JOIN과 NOT IN으로 차집합을 구하는 문제였다.
# Write your MySQL query statement below
SELECT Customers.Name AS Customers
From Customers
WHERE Customers.Id NOT IN
(SELECT Customers.Id AS Customers
From Customers JOIN Orders
ON Customers.Id=Orders.CustomerId);
'PS > LeetCode' 카테고리의 다른 글
[LeetCode] Reverse Linked List (0) | 2020.04.27 |
---|---|
[LeetCode] Combine Two Tables (0) | 2020.04.27 |
[LeetCode] Add Binary (0) | 2020.04.23 |
[LeetCode] Same Tree (0) | 2020.04.22 |
[LeetCode] Majority Element (0) | 2020.04.21 |