SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='ACCESSORIES' and upper(subtyp1)<>'EMPTY' and style_id IN (1076,2699,6394,6525,6586,7417,7465,7740,7750,7854,10511,14160,14823,14936,14999,15068,15364,15904,17052,17148,18939,19204,19291,19317,20518,20792)
GROUP BY subtyp1 |