SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Outerwear' and upper(subtyp2)<>'EMPTY' and style_id IN (350,1792,3129,3622,3635,5331,5334,5446,5455,5594,5637,5638,5700,5709,5726,5728,5732,5745,5762,9568,9721,9890,9904,9927,9931,11297,14067,15122,15423,15509,16669,16806,16808,16809,16880,16881,17277,17472,17625,17917,17939,17968,18262,18413,18743,18956,19127,19128,19129,19858,19902,19955,19961,19968,19971,20059,20060,20079,20081,20129,20143,20149,20160,20172,20173,20180,20248,20286,20288,20291,20318,20336,9913)
GROUP BY subtyp2 |