SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='CARE AND REPAIR' and upper(subtyp1)<>'EMPTY' and style_id IN (2355,2356,3819,3950,4027,4107,4145,4159,4184,4278,4790,4791,4792,4793,4794,4797,4800,4802,6361,8360,14023,14971,15616,16991,17835,18052)
GROUP BY subtyp1 |