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 (881,886,898,901,902,905,2367,2369,2374,2375,2387,2388,2391,2393,3122,4056,8393,13917,13918,14026,15340,15868,15873,15965,16193,18474,20520,21352,21798)
GROUP BY subtyp1 |