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 (963,975,979,981,989,990,991,993,1000,1004,1009,1010,1011,1013,1017,1019,1022,1025,1031,1032,1033,1035,1038,1042,1044,1045,1046,15011,15012,15015,15016,15301,15593,16114,16164,16166,17048,17049,17050,17051,17054,17250,17347,17503,17587,18339,18340,19002,21705,21715,21718,21719,21720)
GROUP BY subtyp1 |