SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and upper(subtyp1)<>'EMPTY' and style_id IN (1306,1319,1341,1750,1754,1758,2148,2156,2915,2977,2998,3001,3002,3260,3408,3497,3549,4854,5298,5361,5363,5391,5551,5649,5673,6265,6295,8069,11278,11312,11402,11404,14069,14275,14488,14635,14683,15750,15752,16401,16442,16684,16803,16807,16831,16948,17199,17857,18189,19031,19210,19215,19218,19248,19972,20871,20875,20876,20914,20960,21091,21128,21131,21134,21138,21235,21240,21259,21314,21315,21316,21317,21355,21356,21358,21362,21363,21364,21389,21585,22095,2979)
GROUP BY subtyp1 |