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,3762,3950,4107,4145,4147,4159,4184,4790,4791,4792,4793,4794,4800,4802,6361,8360,14023,14495,14971,15047,15616,16740,16991,17835,18052,19023,19024,19187,19544)
GROUP BY subtyp1 |