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,1308,1318,1319,1341,1429,1750,1758,2829,3076,3293,3294,5361,5363,5365,5391,5565,5649,5920,6265,6295,11312,14069,14488,14635,15475,16401,16405,16410,16442,16443,16444,16683,16795,16817,16835,17895,19167,19215,19218,19557,19584,20501,20769,20871,20875,20876,20904,20905,20957,20958,20959,20960,20962,20963,20964,20965,20966,20967,20968,20969,20982,21085,21113,21115,21116,21117,21118,21120,21121,21125,21126,21128,21130,21131,21132,21133,21134,21136,21137,21138,21140,21240,21241,21259,21314,21315,21316,21317,21319,21353,21355,21356,21358,21360,21362,21363,21364,21389,21576,21585,21786,2973,2979)
GROUP BY subtyp1 |