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,1750,1758,2156,2915,2975,2977,2998,3001,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,16410,16442,16444,16683,16803,16817,16831,16835,17895,18712,18962,18964,18976,19035,19036,19038,19164,19167,19414,19557,20377,20493,20875,20876,20904,20905,20914,20957,20958,20960,20962,20963,20964,20966,20968,20969,20982,20986,21085,21086,21090,21091,21116,21117,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 |