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,897,899,906,2367,2369,2371,2374,2375,2382,2383,2386,2387,2388,2391,2392,2393,2394,3122,4013,4056,13917,13918,13919,15340,15652,15670,15866,15867,15868,15869,15870,15871,15872,15873,16191,16193,16194,16198,17119,17139,17469,18474,19488,19490,19491,20519,20520)
GROUP BY subtyp2 |