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 (1307,1342,1422,1830,1888,1924,1951,2136,2137,2148,2979,2998,3073,3076,3100,3293,3294,3529,5221,5249,5298,5307,5316,5326,5331,5361,5365,5535,5536,5563,5564,5565,5637,5719,5732,5745,5748,5754,5755,5887,8069,9041,9150,9400,9428,9594,14068,14069,14642,15432,15735,15913,16443,16444,16659,16660,16669,16683,16784,16803,16948,17180,17857,17944,18147,18261,18957,19081,19215,19256,19331,19949,20500,20501,20569,20769,20914,20962,20963,20968,21043,21057,21059,21085,21133,21189,21233,21237,21238,21239,21314,21316,21322,21356,21402,21404,21407,21410,21440,21605,21922,21931,21932,22154,22292)
GROUP BY subtyp1 |