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,897,899,901,906,2367,2369,2374,2375,2381,2382,2386,2387,2388,2391,2393,2394,2763,3122,3123,4013,4023,4056,13917,13918,13919,14631,15339,15340,15652,15670,15866,15867,15868,15869,15870,15872,15873,16191,16193,16194,16197,16198,17119,17139,17469,17470,17891,18474,19488,19490,19491)
GROUP BY subtyp2 |