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,3122,3701,3718,3722,3724,3734,3735,3736,3739,3742,3943,4023,4056,4057,4135,5922,5929,5930,5931,8393,13917,13918,13919,15250,15340,15612,15866,15868,15869,15870,15872,15873,16191,16334,16693,16737,17139,17469,18288,18446,18448,18474,19490,19710,19736,20519,20520,20563,20592,20943,21072,21074,21349,21351,21352,21690,21778,21798,22224)
GROUP BY subtyp1 |