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,905,906,910,2367,2369,2374,2375,2381,2382,2386,2387,2388,2391,2392,2393,2394,2763,2764,3123,4013,4023,4056,13918,14631,15652,15670,15869,15871,15872,15873,17119,17469,17470,17891)
GROUP BY subtyp2 |