SELECT SUBSTR(PRODUCT_CODE, 1, 2), COUNT(*) FROM PRODUCT GROUP BY SUBSTR(PRODUCT_CODE, 1, 2) ORDER BY PRODUCT_CODE;