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,2975,2977,2998,3001,3002,3260,3408,3497,3549,4854,5298,5361,5363,5391,5551,5649,6295,8069,11278,11312,11402,11404,14069,14275,14488,14635,14642,14683,15750,15752,16401,16410,16442,16803,16807,16817,16831,16948,17199,17857,18189,19031,19210,19215,19218,19972,20875,20876,20914,20960,21086,21090,21091,21128,21130,21131,21133,21134,21138,21234,21235,21240,21241,21259,21314,21315,21316,21317,21353,21355,21356,21358,21362,21363,21364,21389,21585,2979)
GROUP BY subtyp1 |