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,1751,1758,1889,1893,1951,1952,2224,2829,3076,3100,3293,3294,3635,5307,5326,5361,5363,5365,5391,5535,5563,5564,5565,5637,5649,5719,5722,5726,5732,5745,5748,5755,5771,5871,5920,6139,6240,6265,6295,6316,9023,9931,11311,11312,14068,14069,14125,14488,14635,14729,14730,14755,15199,15475,15555,15729,15741,15742,15913,16087,16401,16405,16410,16442,16443,16444,16660,16669,16683,16782,16783,16784,16794,16795,16808,16817,16835,16836,16870,16959,17180,17895,17944,18261,18413,19167,19215,19218,19297,19557,19584,19878,19949,19952,20172,20337,20501,20569,20684,20697,20698,20769,20871,20875,20876,20904,20905,20957,20958,20959,20960,20962,20963,20964,20965,20966,20967,20968,20969,20981,20982,21057,21066,21085,21088,21089,21113,21114,21115,21116,21117,21118,21120,21121,21123,21124,21125,21126,21128,21130,21131,21132,21133,21134,21136,21137,21138,21140,21236,21240,21241,21259,21314,21315,21316,21317,21319,21353,21355,21356,21358,21359,21360,21362,21363,21364,21389,21576,21585,21592,21594,21786,2973,2979)
GROUP BY subtyp1 |