SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='SNOWSPORTS' and typ='XC RACE AND FITNESS' and upper(subtyp1)<>'EMPTY' and style_id IN (2278,2281,2284,2285,2286,2287,2295,2308,2309,2312,2316,2322,2323,2324,2326,2327,2329,7917,7933,7938,8179,8211,8212,8220,8228,8232,8234,8235,9388,14363,14414,18559,20509,9437,9457)
GROUP BY subtyp1 |