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,1427,1429,1430,1830,1835,1888,1889,1951,2136,2137,2156,2975,2998,3002,3076,3100,3260,3294,3529,3549,3635,5249,5326,5361,5363,5365,5391,5414,5535,5551,5563,5564,5565,5637,5649,5719,5722,5732,5745,5748,5754,5755,5866,5920,6240,6265,6316,8069,9041,9150,9400,9593,11311,14067,14068,14069,14125,14244,14275,14488,14635,14642,14683,15432,15433,15637,15658,15729,15736,15913,16401,16442,16443,16444,16616,16660,16683,16784,16794,16795,16803,16808,16817,16831,16959,17180,17182,17489,17623,17858,17895,17944,18027,18035,18140,18175,18261,18413,18956,18962,18964,19032,19036,19039,19129,19164,19168,19248,19249,19253,19256,19972,20172,20337,20375,20377,20493,20500,20698,20871,20875,20876,20877,20904,20905,20914,20982,20986,21057,21059,21066,21085,21086,21087,21088,21089,21090,21091,21234,21236,21237,21238,21239,21240,21314,21315,21316,21317,21319,21389,21578,21581,21585,21592,21594,21595,21786,2973,2979)
GROUP BY subtyp1 |