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,2795,3950,4107,4141,4145,4159,4184,4790,4791,4792,4793,4794,4797,4800,6361,14023,14971,15616,18052,19023,19187,19544,20092,20093,20094,20785,21778)
GROUP BY subtyp1 |