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,3950,4107,4141,4145,4184,4790,4791,4792,4793,4794,4797,6361,8360,14023,14971,15616,17835,18052,19023,19024,19187,19544,20094,20451,20785,21778)
GROUP BY subtyp1 |