Find Customer Referee

수이·4일 전
0

🟢 코드카타 / SQL

목록 보기
78/81

Find the names of the customer that are not referred by the customer with id = 2.
Return the result table in any order.
문제링크

조건정리
ID가 2인 고객에게 referred 되지 않은 고객 찾기

풀이

SELECT name
FROM customer
WHERE referee_id <> 2  
      OR referee_id iS NULL

네 이지하고요

0개의 댓글

관련 채용 정보