SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='KNIVES, TOOLS AND GEAR' and upper(subtyp1)<>'EMPTY' and style_id IN (671,881,886,898,899,901,905,906,907,2369,2371,2375,2382,2388,2392,2393,2394,3122,3701,3718,3722,3724,3734,3735,3736,3739,3742,3943,4013,4056,4135,5921,5929,5931,8393,13917,13918,13919,13972,15250,15340,15612,15866,15868,15869,15870,15872,15873,16191,16193,16197,16693,16737,17029,17139,17469,18288,18446,18474,19428,19490,19710,19736,20519,20520,20563,20564,20592,20943,21072,21349,21350,21351,21352,21778,22224)
GROUP BY subtyp1 |