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,2303,2422,2427,2433,2434,9087,9120,9121,9123,9363,9406,9433,9446,9447,9450,9454,9466,9469,9470,9471,9481,9482,10014,11467,11468,11471,13926,14222,15886,15887,15889,16091,16249,18179,18206,18208,18209,18273,18275,18433,18473,20486,20607,20609,20864,20956,22197,22198,22205,22206,9360,9439,9441,9445,9448,9472,9477,9488,11011)
GROUP BY subtyp1 |