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,1319,1341,1750,1751,1753,1754,1758,1829,1830,1893,1952,2136,2137,2148,2156,2206,2224,2225,2226,2915,2977,2998,3001,3002,3100,3260,3379,3408,3497,3529,3549,3635,4846,4847,4854,5221,5249,5298,5301,5313,5316,5361,5363,5391,5535,5551,5563,5637,5638,5649,5673,5719,5732,5745,5754,5755,5771,6139,6240,6265,6295,6316,8069,8961,9023,9041,9150,9927,9931,11278,11311,11312,11313,11402,11404,14068,14069,14133,14244,14275,14488,14635,14683,14728,14729,14730,14755,15432,15433,15555,15556,15736,15742,15750,15752,15760,15895,16401,16442,16659,16660,16669,16684,16782,16783,16784,16803,16807,16808,16831,16836,16870,16872,16879,16948,16959,17182,17194,17199,17489,17857,18027,18035,18140,18187,18189,18413,19031,19210,19215,19218,19248,19253,19297,19878,19952,19972,20059,20267,20698,20871,20875,20876,20914,20960,21059,21087,21088,21091,21112,21128,21131,21134,21138,21235,21236,21238,21239,21240,21259,21314,21315,21316,21317,21355,21356,21358,21359,21361,21362,21363,21364,21389,21585,22095,2979)
GROUP BY subtyp1 |