https://school.programmers.co.kr/learn/courses/30/lessons/62284
select cart_id from cart_products where name in ("Yogurt", "Milk") group by cart_id having count(distinct name) > 1