SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Bottoms' and upper(subtyp2)<>'EMPTY' and style_id IN (5565,5649,9023,9150,11404,14642,16401,16442,16683,16807,16872,17857,19031,19584,19972,20876,20960,21087,21088,21128,21138,21240,21359,21361,21362,21363,21364)
GROUP BY subtyp2 |