SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (1556,1557,1558,1559,1560,2006,2442,2829,3260,4388,4991,4998,4999,5005,5019,5021,5022,5034,9261,9263,9266,9268,9783,11290,13949,14425,14828,15451,15452,15453,15454,15455,15502,15725,15726,16119,16631,16748,16947,17483,17521,18189,18314,18822,18823,18824,19193,20204,20597,21000,21002,21824,21875,21883)
GROUP BY subtyp2 |