SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Accessories' and upper(subtyp2)<>'EMPTY' and style_id IN (918,2332,3073,3201,3206,3215,3406,3408,5221,5249,5298,5301,5302,5307,5313,5316,5339,5479,5662,6047,9400,9427,9428,9495,9898,9899,10760,10841,10853,10874,10979,10981,10984,10993,11589,13909,14255,14678,14766,14929,15895,16013,16017,16021,16092,16094,16097,16157,16216,16221,16768,16948,17199,17680,18187,18234,18235,18272,18379,18395,18468,18469,18669,19353,19497,19628,20223,20224,20295,20316,20375,20377,20379,20404,20468,20492,20500,20501,20514,20524,20569,20571,21015,21032,21262,21273,21276,21281,21285,21286,21365,21367,21368,22154,22155,22218,22292,19629)
GROUP BY subtyp2 |