본문 바로가기
알고리즘/leetcode

183. Customers Who Never Order

by 1.5볼트 2023. 4. 30.
728x90

sql 도 주기적으로 해줘야지 

 

아무것도 주문하지 않음== 데이터가  없다 는 null

 

마치 구글 같네

select a.name Customers 
from  Customers a left join Orders b on(a.id=b.customerId )
where b.customerId is null;

 

'알고리즘 > leetcode' 카테고리의 다른 글

2215. Find the Difference of Two Arrays  (0) 2023.05.03
1822. Sign of the Product of an Array  (0) 2023.05.02
178. Rank Scores  (0) 2023.04.29
184. Department Highest Salary  (0) 2023.04.28
258. Add Digits  (0) 2023.04.26

댓글