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 (1319,1341,1368,1385,1425,1427,1750,1751,1753,1754,1758,1829,1830,1893,1952,2136,2137,2148,2206,2224,2225,2226,2915,2975,2998,3001,3002,3100,3379,3408,3529,3549,4846,4847,4854,5249,5298,5313,5316,5361,5363,5391,5535,5551,5563,5565,5637,5638,5649,5673,5719,5745,5755,5771,5920,6139,6240,6265,6295,6316,8069,8961,9023,9041,9150,9927,9931,11278,11311,11312,11313,11402,11404,14068,14069,14244,14488,14635,14642,14683,14728,14729,14730,14755,15432,15433,15555,15556,15735,15736,15742,15750,15752,15760,15895,16616,16660,16782,16783,16784,16794,16803,16807,16808,16870,16872,16879,16948,16959,17182,17199,17489,17857,18027,18035,18140,18187,18413,19031,19032,19215,19218,19253,19297,19952,20059,20267,20698,20871,20875,20876,20957,20958,20968,21059,21086,21087,21091,21112,21128,21131,21134,21235,21236,21237,21239,21240,21314,21315,21316,21317,21355,21356,21361,21362,21363,21364,21389)
GROUP BY subtyp1 |