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,901,905,906,907,2369,2371,2392,3701,3718,3722,3724,3734,3735,3736,3739,3742,3943,4023,4056,4057,5929,8393,13917,13918,13919,15612,15866,15869,15870,15872,15873,16191,16334,16692,16693,16737,17029,17139,17469,18288,18446,18448,18474,19428,19490,19710,20519,20563,20592,20943,21072,21074,21351,21352,21690,21778,21798,22224)
GROUP BY subtyp1 |