-
607. Sales Person mysqlLeetCode_Study_Plan/SQL 2022. 9. 30. 16:28
https://leetcode.com/problems/sales-person/?envType=study-plan&id=sql-i
select name from salesPerson where name not in (select s.name from salesperson s left join (select c.com_id, c.name, o.sales_id from company c left join orders o on c.com_id = o.com_id) co on s.sales_id = co.sales_id where co.name = 'RED');
조인문 여러 개 쓰는 거 조금 익숙해진 것 같다 ㅎ ㅎ
'LeetCode_Study_Plan > SQL' 카테고리의 다른 글
176. Second Highest Salary mysql (0) 2022.10.02 608. Tree Node mysql (0) 2022.10.02 197. Rising Temperature mysql (0) 2022.09.30 1148. Article Views I mysql (0) 2022.09.30 1581. Customer Who Visited but Did Not Make Any Transactions mysql (0) 2022.09.30