문제
Write a solution to find the ids of products that are both low fat and recyclable.
Return the result table in any order.
The result format is in the following example.
풀이
select p1.product_id
from Products p1
inner join Products p2 on p1.product_id = p2.product_id
where p1.low_fats = 'Y' and p2.recyclable = 'Y'
'Data > SQL' 카테고리의 다른 글
[Leetcode] 1661. Average Time of Process per Machine (0) | 2024.01.09 |
---|---|
[Leetcode] 602. Friend Requests II: Who Has the Most Friends (0) | 2024.01.09 |
[프로그래머스] 가격대 별 상품 개수 구하기 (0) | 2024.01.07 |
[프로그래머스] 상품을 구매한 회원 비율 구하기 (0) | 2024.01.06 |
[HackerRank] Weather Observataion Station 5 (0) | 2023.07.24 |