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 (877,881,886,897,899,901,905,906,910,912,2367,2369,2374,2375,2381,2382,2386,2387,2388,2391,2392,2393,2394,2763,2764,3122,3123,4023,4056,13918,14631,15338,15340,15652,15669,15872,15873,16154,17119,17469,17470)
GROUP BY subtyp2 |