SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='SNOWSPORTS' and typ='ACCESSORIES' and upper(subtyp1)<>'EMPTY' and style_id IN (745,779,2254,2276,2301,2302,2303,2422,2427,2433,2434,9087,9088,9095,9120,9121,9123,9363,9405,9406,9410,9429,9440,9446,9447,9450,9451,9466,9469,9470,9471,9482,11468,13926,14222,15886,15887,15889,16033,16091,16249,18204,18206,18207,18209,18273,18275,18433,18473,18503,20486,20607,20609,20741,20864,20956,9360,9439,9441,9445,9448,9472,9477,9488,11011)
GROUP BY subtyp1 |