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 (1308,1318,1319,1368,1429,1750,1758,2829,3076,3293,3294,5298,5361,5363,5365,5391,5414,5649,5920,6265,6295,8069,11312,14069,14275,14488,14635,16401,16442,16443,16616,16683,16795,16817,16831,16835,17676,17895,18957,18965,19167,19218,19557,19584,20501,20769,20871,20875,20876,20904,20905,20957,20958,20960,20962,20963,20966,20967,20968,20969,20982,21090,21115,21116,21118,21121,21125,21126,21128,21130,21131,21134,21137,21138,21140,21240,21241,21314,21315,21317,21353,21355,21360,21363,21364,21576,21585,21786,22095,2979)
GROUP BY subtyp1 |