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 (975,981,1019,1032,1046,1457,1513,5052,5053,5082,14555,14564,14565,15011,15016,15593,15784,15876,16164,16166,17048,17049,17050,17250,17347,17476,17503,19002,20072,21705,21715)
GROUP BY subtyp1 |