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,1750,1758,2156,2975,2998,3002,3076,3260,3294,3549,4854,5298,5361,5363,5365,5391,5414,5551,5565,5649,5673,5920,6265,8069,11312,14069,14275,14488,14635,14642,14683,16401,16410,16442,16443,16444,16616,16683,16684,16803,16817,16831,16835,17199,17895,18712,18962,18964,19035,19036,19038,19039,19129,19164,19167,19248,19414,19557,19584,20377,20493,20871,20875,20876,20904,20905,20914,20957,20958,20959,20960,20962,20963,20964,20966,20968,20969,20982,20986,21085,21086,21090,21091,21116,21117,21121,21125,21126,21128,21130,21131,21133,21136,21137,21138,21140,21234,21235,21240,21241,21259,21314,21316,21317,21353,21355,21356,21358,21360,21362,21363,21364,21389,21578,21585,21786,2973)
GROUP BY subtyp1 |