select customers.name as Customers
from customers
where customers.id not in
(select customerid
from orders)
이건 submit code할 때 들어오는 input 데이터가 이상함.
같은 이름이 2번 input으로 들어가면 한번만 그 사람 이름이 나오는게 맞지 않나 생각함.
근데 해답은 2번 같은 이름이 나오는 것을 원함.
'섭섭의 공부 > SQL' 카테고리의 다른 글
[LeetCode] Rising Temperature (0) | 2021.12.21 |
---|---|
[LeetCode] Employees Earning More Than Their Managers (0) | 2021.12.02 |
[HackerRank] Average Population of Each Continent (0) | 2021.12.02 |
[HackerRank] Asian Population (0) | 2021.12.02 |
[HackerRank] African Cities (0) | 2021.12.02 |