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,1751,1753,1758,1830,1835,1888,1889,1951,2136,2137,2156,2915,2975,2977,2998,3001,3002,3076,3100,3260,3294,3529,3549,4846,4847,4854,5221,5249,5298,5307,5313,5316,5326,5361,5363,5365,5391,5414,5535,5551,5563,5564,5565,5637,5649,5673,5719,5722,5732,5748,5754,5755,5920,6240,6265,6316,8069,9041,9150,9400,9593,11311,11312,11313,14067,14068,14069,14125,14133,14244,14275,14488,14635,14642,14678,14683,14728,15199,15432,15433,15637,15658,15729,15736,15913,16410,16442,16444,16659,16660,16683,16803,16817,16831,16835,16836,16870,16872,16959,17180,17182,17489,17623,17895,18027,18035,18140,18175,18261,18413,18712,18956,18962,18964,18976,19032,19035,19036,19038,19164,19167,19253,19256,19297,19414,19557,20337,20375,20377,20493,20500,20698,20875,20876,20904,20905,20914,20957,20958,20960,20962,20963,20964,20966,20968,20969,20982,20986,21057,21059,21066,21085,21086,21087,21088,21089,21090,21091,21112,21116,21117,21123,21125,21126,21128,21130,21131,21133,21136,21137,21138,21140,21234,21235,21236,21238,21239,21240,21241,21259,21314,21316,21317,21353,21354,21355,21356,21358,21359,21360,21361,21362,21363,21364,21389,21578,21581,21585,21592,21594,21595,21786,2973)
GROUP BY subtyp1 |