SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='SNOWSPORTS' and typ='SNOWSHOES' and upper(subtyp1)<>'EMPTY' and style_id IN (403,406,407,408,409,410,411,412,413,414,10746,10747,10748,10749,10750,10751,10752,10753,10756,16314,16315,16316,16317,18304,18305,18307)
GROUP BY subtyp1 |