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 (439,1383,1556,1825,2779,3556,3560,3627,4960,5026,5383,5461,6131,6133,6134,6502,7437,8003,8005,8639,9783,10286,11309,14492,14829,14842,15883,16399,16400,16500,16748,16805,16829,16861,17519,17520,18185,19142,19143,20028,20150,20505,20597,20961,21135,21232,21242,21318,21390)
GROUP BY subtyp1 |