SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='KNIVES, TOOLS AND GEAR' and subtyp1='Knives & Multi-tools' and upper(subtyp2)<>'EMPTY' and style_id IN (881,886,898,901,902,905,2367,2369,2374,2375,2387,2388,2391,2393,3122,4056,13917,13918,15340,15868,15873,16193,18474,20520,21352,21798)
GROUP BY subtyp2 |