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,4159,4184,4790,4791,4792,4793,4794,4797,4800,4802,6361,8360,14023,14495,15047,15616,17835,19024,19187,19544,20092,20093,20094)
GROUP BY subtyp1 |