SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='HYDRATION' and upper(subtyp1)<>'EMPTY' and style_id IN (989,990,991,1004,1449,1450,1471,1517,3025,3026,3028,3029,3053,5130,5161,14006,14166,15301,15783,16114,16586,16587,16590,16760,18340,20829,20830,20831,21720)
GROUP BY subtyp1 |