๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/131529
-- ์ฝ๋๋ฅผ ์
๋ ฅํ์ธ์
SELECT left(PRODUCT_CODE, 2) as CATEGORY, count(*) as COUNT
from PRODUCT
group by CATEGORY
order by CATEGORY asc
๋ฐ์ํ