상반기 동안 각 아이스크림 성분 타입과 성분 타입에 대한 아이스크림의 총주문량을 총주문량이 작은 순서대로 조회하는 SQL 문을 작성해주세요. 이때 총주문량을 나타내는 컬럼명은 TOTAL_ORDER로 지정해주세요.
SELECT * FROM ICECREAM_INFO
SELECT * FROM FIRST_HALF
SELECT * FROM ICECREAM_INFO ii LEFT JOIN FIRST_HALF fh ON ii.flavor = fh.flavor
SELECT * FROM ICECREAM_INFO ii LEFT JOIN FIRST_HALF fh ON ii.flavor = fh.flavor GROUP BY ii.ingredient_type
SELECT ii.ingredient_type , sum(fh.total_order) AS TOTAL_ORDER FROM ICECREAM_INFO ii LEFT JOIN FIRST_HALF fh ON ii.flavor = fh.flavor GROUP BY ii.ingredient_type
SELECT ii.ingredient_type , sum(fh.total_order) AS TOTAL_ORDER FROM ICECREAM_INFO ii LEFT JOIN FIRST_HALF fh ON ii.flavor = fh.flavor GROUP BY ii.ingredient_type ORDER BY fh.TOTAL_ORDER ASC