[코드카타] SQL 17 Find Customer Referee

Data_Student·2024년 11월 5일
0

코드카타

목록 보기
24/57

[코드카타] SQL 17 Find Customer Referee

17. Find Customer Referee
https://leetcode.com/problems/find-customer-referee/submissions/1443289813/

#문제 : Find the names of the customer that are not referred by the customer with id = 2.
select name
from customer
where referee_id is null or referee_id != 2

0개의 댓글