SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='BACKPACKS AND BAGS' and upper(subtyp1)<>'EMPTY' and style_id IN (1014,1516,1759,1760,1763,2015,2019,2035,2505,3755,4009,4473,4474,4480,4484,4486,5046,5048,5060,5063,5065,5067,5068,5070,5072,5077,5078,5088,5092,5106,5107,5122,5129,5145,5152,5163,5165,5166,5168,5196,8378,8379,8380,8381,8389,8390,8391,8394,8397,8419,8426,8427,8428,8429,8431,8432,8433,8434,8437,8439,9511,9690,9691,9777,9946,13986,14238,14246,14247,14248,14250,14266,14267,14270,14271,14272,14273,14400,14401,14405,14566,14815,14943,14967,15117,15222,15223,15619,15620,16645,16646,16648,17106,17107,17108,17145,17146,17147,11459)
GROUP BY subtyp1 |