SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='SNOWSPORTS' and typ='XC RECREATIONAL AND BACKCOUNTRY' and upper(subtyp1)<>'EMPTY' and style_id IN (2268,2272,2273,2274,2288,2294,2297,2306,2313,2315,2317,2318,2325,2330,7913,7916,7932,7939,7940,7941,7942,7948,7949,7951,7952,7953,7954,7955,7956,7958,7959,7961,7962,8161,8181,8214,8216,8219,8230,8231,8236,9358,14115,16090,16245,16246,16283,16313,18110,18111,18233,18349,18350,18351,18352,18465,18557,18663,18666,21111)
GROUP BY subtyp1 |