SQL

[프로그래머스] 주문량이 많은 아이스크림들 조회하기

hminor 2023. 7. 18. 09:52
SELECT T2.FLAVOR
FROM FIRST_HALF T1, JULY T2
WHERE T1.FLAVOR = T2.FLAVOR
GROUP BY T2.FLAVOR
ORDER BY SUM(T2.TOTAL_ORDER)+T1.TOTAL_ORDER DESC
LIMIT 3