-
우유와 요거트가 담긴 장바구니SQL/SQL 연습문제 풀이 2022. 1. 19. 13:42반응형
https://programmers.co.kr/learn/courses/30/lessons/62284
MySQL, Oracle
SELECT A.CART_ID FROM ( SELECT CART_ID FROM CART_PRODUCTS WHERE NAME='Milk' ) A JOIN ( SELECT CART_ID FROM CART_PRODUCTS WHERE NAME='Yogurt' ) B ON A.CART_ID=B.CART_ID GROUP BY A.CART_ID ORDER BY A.CART_ID
반응형