select customers.name as Customers
from customers
where customers.id not in
    (select customerid
    from orders)

이건 submit code할 때 들어오는 input 데이터가 이상함.

같은 이름이 2번 input으로 들어가면 한번만 그 사람 이름이 나오는게 맞지 않나 생각함.

근데 해답은 2번 같은 이름이 나오는 것을 원함.

 

(문제 출처 - https://leetcode.com/problemset/database/)

+ Recent posts